Getting cell value from other sheets

G

Guest

Is it possible to get cell value from sheet2 (Active sheet is Sheet1) without
Activating Sheet2? Right now I am activating sheet2 and getting specific
range cell value - but calling sheet Activate() looks like toggling - so is
there any other way to extract cell value from other sheets wihtout actually
activation that sheet programatically? Thanks for any suggestion...
 
G

Guest

Hi Dev -
I think the easiest approach is to use a very explicit description of the
source cell in your VBA code. Something like this should work without
activating Sheet2:

x = ActiveWorkbook.Worksheets("Sheet2").Range("B17")
 
G

Guest

Thanks Jay!! this is what I am looking for...

Jay said:
Hi Dev -
I think the easiest approach is to use a very explicit description of the
source cell in your VBA code. Something like this should work without
activating Sheet2:

x = ActiveWorkbook.Worksheets("Sheet2").Range("B17")
 

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