activeCell.offset in another worksheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
To save some time on process I'm searching a way to do something like
Sheets(cFromWb).ActiveCell.Offset(1, 0).Select where cFromWB is not the
current active worksheet. But this is a wrong instruction.
Does somebody has an idea how to solve this ?

Many Thanks.
 
Hi

Try this:
Sheets(cFromWb).Range(ActiveCell.Address).Offset(1, 0).Select
 
Francois,

I'm not sure that there is an activecell in a workbook that is not active.
You can reference a single cell, or an offset, as in the example below.

Sub UpdateOtherBook()
Workbooks("Book1").Sheets(1).Cells(1, 1).Offset(1,0).Value = "hello"
End Sub

Robin Hammond
www.enhanceddatasystems.com
 

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

Back
Top