Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 90
Default Excel 2003 Macro - Finding rows with data to copy

Below is a recorded macro to copy data to another worksheet.

Range("V7").Select
Selection.AutoFilter Field:=20, Criteria1:="<"
Range("V7:AI7").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("V7:AS350").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Combined Upload File").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

What I really need to do is find the first row that has data in column V (do
not want to include the headers) and go to the last row that has data, copy
and paste into another worksheet. There is a formula in column V that will
provide results if the criteria is met. The current range where there is a
possiblity of data is from V7-V350. I could have data populated in V7 but
not necessarily. I originally was filtering by "non blanks" to get the data
I wanted to copy but realized that it is not dynamic and will not change each
day based on what rows will have data or not.
--
Debbie Sherman
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default Excel 2003 Macro - Finding rows with data to copy

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Debbie" wrote in message
...
Below is a recorded macro to copy data to another worksheet.

Range("V7").Select
Selection.AutoFilter Field:=20, Criteria1:="<"
Range("V7:AI7").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("V7:AS350").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Combined Upload File").Select
Range("A3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False

What I really need to do is find the first row that has data in column V
(do
not want to include the headers) and go to the last row that has data,
copy
and paste into another worksheet. There is a formula in column V that
will
provide results if the criteria is met. The current range where there is
a
possiblity of data is from V7-V350. I could have data populated in V7 but
not necessarily. I originally was filtering by "non blanks" to get the
data
I wanted to copy but realized that it is not dynamic and will not change
each
day based on what rows will have data or not.
--
Debbie Sherman


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding row, then copy paste (macro) Edwin Excel Discussion (Misc queries) 5 July 15th 09 12:18 AM
Finding Duplicate Rows (Macro) Edwin Excel Discussion (Misc queries) 2 July 2nd 09 09:02 PM
macro to select and copy rows only containing data shaz0503 Excel Discussion (Misc queries) 5 October 10th 08 01:58 AM
Excel 2003: Copy rows from one workbook into another without losinginterleaved data Steve Bentley New Users to Excel 3 April 24th 08 11:28 PM
Finding common data in multiple columns and rows in Excel sparham Excel Worksheet Functions 3 February 12th 05 04:11 AM


All times are GMT +1. The time now is 06:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"