Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or is the lesson of the day that I cannot use the select method on an object?
I took out the tbl.Select and simple went on to the next line tbl.Copy and all is well. Thanks "ExcelMonkey" wrote: I am trying to select cell A2 and the SHIFT-CNTL-Right and SHIFT-CNTL-Down. When I recored the macro the code is as seen below under the comment 'Choose Used Range of target sheet. However when I try to run it, I get an Run Time Error 1004. ("Method Range of Object _Worksheet failed") Why is this? 'Select First Cell in Target file sheet Worksheets("Template").Range("A2").Select 'Choose Used Range of target sheet Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlToRight)).Select Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Select Range off sheet from inputbox | Excel Discussion (Misc queries) | |||
Select data to appear on 2nd sheet by date range... | Excel Discussion (Misc queries) | |||
select a range, copy it to a new sheet | Excel Discussion (Misc queries) | |||
Select Sheet then Select Range | Excel Programming | |||
Automatically select range and copy to new sheet | Excel Programming |