how do i do something like:
??Please Login or Register to view this content.
how do i do something like:
??Please Login or Register to view this content.
Hi
this line is correct so what is the matter?
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
it is correct?
it didn't work for me
maybe cause u have 2007
No maybe You do not have worksheet with name Sheet2??
Sheets("Sheet2").Activate
or
Sheets("Sheet2").Select
Should also work too... but your original code should work fine unless you don't have a sheet named "Sheet2"
i do have the sheet
how to select a range on other sheet?
like this?:
Please Login or Register to view this content.
Last edited by john456852; 09-11-2012 at 04:16 PM.
John, you don't have to "select" a range on another sheet unless you just want the human user to see it. If you're going to "DO SOMETHING" to the range on the other sheet, then you just do it.
Please Login or Register to view this content.
If you really want to "select" it, you have to activate that sheet first so it is onscreen, then you can "select" it with your code from post #1 and the user will see you have selected cells.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks