select method
I've never gotten that to work either. I don't know the technical reason,
however, I will point out that VBA help example activates the worksheet and
selects a specific range using two separate statements (so I figure there
must be a reason).
I've found, however, that it is often not necessary to select/activate items
in order to work with them. For example:
workbooks("olddesign.xls").Worksheets("s1").range( "a1").value = 5
should work just fine.
"R..VENKATARAMAN" wrote:
windows(1).worksheets("s1").range("a1").select
workbooks("olddesign.xls").Worksheets("s1").range( "a1").select
Neither of the above works one gives the error
"object does not support or method"
and other gives the error
"select method or range class failed"
I have to use
windows(1).activate
worksheets("s1").activate
range("a1").select
why? Where do I go wrong?
|