hi,
change my code from this
(same code for 2nd week to 4th week sheets)
to thisPlease Login or Register to view this content.
it errors on the pname.selectPlease Login or Register to view this content.
hi,
change my code from this
(same code for 2nd week to 4th week sheets)
to thisPlease Login or Register to view this content.
it errors on the pname.selectPlease Login or Register to view this content.
If the range PNAME is not on the currently active sheet, it will throw an error. So all you need is to first activate the relevant Sheet and then select PNAME.
Add WS.Activate before PNAME.Select.
BTW what is the use of selecting PNAME?
You may use the following line to get the details of PNAME on immediate window.
Please Login or Register to view this content.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
PNAME.Select is so it will scroll to the found name
edited code now have error in the for each
Please Login or Register to view this content.
It should be For Each WS In MONTH.Sheets
the error is now back to PNAME.Select
Please Login or Register to view this content.
Change this line...
Please Login or Register to view this content.
working now, thanks!
You're welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks