Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to select a dynamic range (known number of columns, unknown number of
rows), where the starting row always changes, and paste it to another workbook I'm always able to determine the starting cell of the range by searching (FIND) for the heading in the report and offsetting by 1 row. I know that the data should be in columns A through F, with a dynamic number of rows. So, at first I just used some simple code to select the range: Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select This worked fine until a report came back with no data under the report heading. The above code caused me to have too many columns to paste in the other workbook. The number of rows were okay because of the heading for the next section of the report stopped the .End(xlDown) Any ideas on how to select the range or if the section is blank how do I skip this part of the macro? THANKS! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic pivot table linked to dynamic excel spreadsheets | Excel Worksheet Functions | |||
Dynamic Charts where start is known, but end is unknown | Charts and Charting in Excel | |||
can I pick start point in a range? | Excel Discussion (Misc queries) | |||
Help with copying dynamic column selected based on remote cell value and dynamic formula fill | Charts and Charting in Excel | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel |