Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I am using Excel 2000 with Windows XP. I have the following code to capture the actual range of cells Range("A5",Range("G5").End(xlDown)).Select This works well. Also the following works well. Set sourceRange=mybook.worksheets(5).Range("A5").Curre ntRegion In both the above instances the workbook in aopen and active. Applying the same logic as follows does not work for me but gives me an "Application or Object defined error". mybook is a closed Workbook. Set sourceRange=mybook.Worksheets(5).Range("A5",Range( "G5").End(xlDown)) Any ideas what am I doing wrong. Thanks in advance/sgl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert Calculated Field (wrong Qty*Price = wrong Amount) | Excel Discussion (Misc queries) | |||
Any wrong with this? | Excel Discussion (Misc queries) | |||
What's wrong? | Excel Programming | |||
Am I doing something wrong here? | Excel Programming | |||
What is wrong?? | Excel Programming |