Range.select + sheets.select

D

DrewDog

Is there any way to modify the following statement:


Range("c301").Value =
Range("c2").Offset(fromNewRow, 0).Value

so that after the "=" sign the target cell is on a
different sheet (like using the sheets.select command)?

Drew
 
B

Bill James

Please try:

Range("c301").Value = _
Range("YourOtherSheetName!c2").Offset(fromNewRow, 0).Value

Where "YourOtherSheetName" is replaced with the name of
your worksheet that contains c2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top