ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Why is this an erorr? (https://www.excelbanter.com/excel-programming/378514-re-why-erorr.html)

John Smith

Why is this an erorr?
 
Steven wrote:
vGoToSheet = ActiveCell.Value
Sheets(vGoToSheet).Select
Range("A3").Select

Question: How do you tell excel to go to Range("A3") in the sheet you just
select. They way it is above causes an error on the Range("A3").Select

Thank you,

Steven


Cells(3,1).select

ankur

Why is this an erorr?
 
Hi John,

Yes thats the right way to refer to a cell in a worksheet.
Do you have the code in a sheet? Try putting the code in any modeule
and run from there.

Regards
Ankur Knahcan

www.xlmacros.com




John Smith wrote:

Steven wrote:
vGoToSheet = ActiveCell.Value
Sheets(vGoToSheet).Select
Range("A3").Select

Question: How do you tell excel to go to Range("A3") in the sheet you just
select. They way it is above causes an error on the Range("A3").Select

Thank you,

Steven


Cells(3,1).select




All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com