Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-25-2016, 02:40 AM
alisun125 alisun125 is offline Copying rows through to another worksheet using criteria and VBA Windows XP Copying rows through to another worksheet using criteria and VBA Office 2010 32bit
Novice
Copying rows through to another worksheet using criteria and VBA
 
Join Date: May 2016
Posts: 1
alisun125 is on a distinguished road
Exclamation Copying rows through to another worksheet using criteria and VBA

Hello,

I am having problems writing a code to copy the rows from one worksheet to another, if certain criteria are met.

A data dump is taken from a report and copied into worksheet "a" (starting at C5 due to column headings etc), then in worksheet "b" I need to, on the pressing of a command button, delete the current data in worksheet "b" (C5:Z21000), and pull through data from worksheet "a" (C5:Z21000) if the code number in Column P ends with a ".99" (example code: AB.CD.01.99) and if Column S is NOT populated.



The reason for the deleting of data first is that the only the current/live ".99" rows need to be copied through, and if Column S is populated or the code number has changed, then the actions against the rows have been completed.

It is not essential, but would be super helpful if the code could only bring through Columns CDEFGHIPQRST and put them in CDEFGHIJKLMN.

Many thanks in advance.

alisun125
Reply With Quote
 

Tags
copy, criteria, rows



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying rows through to another worksheet using criteria and VBA copy cells from a worksheet into other worksheets based on Criteria Elton Wolter Excel Programming 4 04-16-2016 08:44 AM
Trouble copying from one Worksheet to another cengel63 Excel 0 03-19-2015 10:14 AM
Copying rows through to another worksheet using criteria and VBA Deleting rows with specific criteria joflow21 Excel 9 11-22-2013 12:10 PM
Copying pivot table and graph to a new worksheet artner0112 Excel 0 02-02-2013 07:19 PM
Copying rows through to another worksheet using criteria and VBA Worksheet copying? markg2 Excel 4 01-07-2010 10:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft