Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm new to Excel macros and need to copy the entire rows for the range from
the first through the last occurrence of "vacation" in column A. The number of rows will vary each month. Then I need to paste those rows onto Sheet1 in cell A1. I've tried using the macro recorder but not getting anywhere. Can you help? Thanks, Mary |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Please tell us in more detail how the layout of the data
best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Mary" wrote in message ... I'm new to Excel macros and need to copy the entire rows for the range from the first through the last occurrence of "vacation" in column A. The number of rows will vary each month. Then I need to paste those rows onto Sheet1 in cell A1. I've tried using the macro recorder but not getting anywhere. Can you help? Thanks, Mary |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There are several columns of data separated by function. I want to find and
copy only the rows that have "vacation" in column A to a new worksheet. I have a macro that sorts the workbook, so all rows are together. The first and last row for the rows that have the vacation information will vary each month when the report comes out. "Bernard Liengme" wrote: Please tell us in more detail how the layout of the data best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Mary" wrote in message ... I'm new to Excel macros and need to copy the entire rows for the range from the first through the last occurrence of "vacation" in column A. The number of rows will vary each month. Then I need to paste those rows onto Sheet1 in cell A1. I've tried using the macro recorder but not getting anywhere. Can you help? Thanks, Mary |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Have a look at datafilterautofilterfilter copy/paste. Record -- Don Guillett Microsoft MVP Excel SalesAid Software "Mary" wrote in message ... I'm new to Excel macros and need to copy the entire rows for the range from the first through the last occurrence of "vacation" in column A. The number of rows will vary each month. Then I need to paste those rows onto Sheet1 in cell A1. I've tried using the macro recorder but not getting anywhere. Can you help? Thanks, Mary |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, that helped. I didn't see all of the options you mentioned in Office
2007, but was able to use autofilter in the macro recorder and it works great. Here's my code: Sub vac_filter() Selection.AutoFilter ActiveSheet.Range("$A$1:$P$65536").AutoFilter Field:=1, Criteria1:="vacation" Cells.Select Sheets("Exec Dir Details").Select Sheets("Exec Dir Details").Copy After:=Sheets(3) Range("A1").Select End Sub "Don Guillett" wrote: Have a look at datafilterautofilterfilter copy/paste. Record -- Don Guillett Microsoft MVP Excel SalesAid Software "Mary" wrote in message ... I'm new to Excel macros and need to copy the entire rows for the range from the first through the last occurrence of "vacation" in column A. The number of rows will vary each month. Then I need to paste those rows onto Sheet1 in cell A1. I've tried using the macro recorder but not getting anywhere. Can you help? Thanks, Mary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find used range and ignore blank cells when running macro? | Excel Programming | |||
macro to find and change text within a range of cells... | Excel Programming | |||
Find range of merged cells | Excel Programming | |||
Find a range of values in a range of cells | Excel Worksheet Functions | |||
find a cells from a range of cell | Excel Worksheet Functions |