M
mike
Hello,
( MS Office Excel 2003 )
I'm getting a runtime 1004 error with for any/each of the following
statements.
I don't want to employ the standard Range("A1") object since the the
A1 is literal string,
and I need more progamatic control hence the Cells method.
The "wrap" variables are non-zero, and temp is not not declared so
that Excel VB
can determine the type as needed.
I've seen on-line doc with stated examples where these should work.
temp = Sheets("Sheet1").Cells(wrap_b, wrap_a).Value2
temp = Cells(wrap_b, wrap_a).Value2
temp = Sheets("Sheet1").Range(Cells(wrap_b, wrap_a), Cells(wrap_b,
wrap_a)).Value2
PS I've never understood the usefulness of the "string" parameter of
the Range() object ...
Thanks, Mike
( MS Office Excel 2003 )
I'm getting a runtime 1004 error with for any/each of the following
statements.
I don't want to employ the standard Range("A1") object since the the
A1 is literal string,
and I need more progamatic control hence the Cells method.
The "wrap" variables are non-zero, and temp is not not declared so
that Excel VB
can determine the type as needed.
I've seen on-line doc with stated examples where these should work.
temp = Sheets("Sheet1").Cells(wrap_b, wrap_a).Value2
temp = Cells(wrap_b, wrap_a).Value2
temp = Sheets("Sheet1").Range(Cells(wrap_b, wrap_a), Cells(wrap_b,
wrap_a)).Value2
PS I've never understood the usefulness of the "string" parameter of
the Range() object ...
Thanks, Mike