Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro
Hello,
Why does this code hang on Range("A1:D205").Select ? I got it by running a macro. Set WB = Workbooks.Open(fileName:=FName) WB.Activate Range("A1:D205").Select Thanks. -cnb |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro
Try adding 'Activesheet." before range
The code should be Activesheet.Range("A1:D205").select -----Original Message----- Hello, Why does this code hang on Range("A1:D205").Select ? I got it by running a macro. Set WB = Workbooks.Open(fileName:=FName) WB.Activate Range("A1:D205").Select Thanks. -cnb . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
macro
Christopher,
Some possibilities" Since no sheet is specified, whichever sheet was active when workbook FName was last saved is the sheet that will be used. If it's a chart sheet, the Select will fail. There may be a scroll range set that's inside the range of A1:D205 -- Earl Kiosterud mvpearl omitthisword at verizon period net ------------------------------------------- "Christopher Brooks" wrote in message ... Hello, Why does this code hang on Range("A1:D205").Select ? I got it by running a macro. Set WB = Workbooks.Open(fileName:=FName) WB.Activate Range("A1:D205").Select Thanks. -cnb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |