Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

Problem with Worksheet name

Hi,
I get
User generated image
due to this line

    If (Worksheets("SelectedVoyage").Name = "") Then

Open in new window


why?
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

because, each  worksheet should have a name,

this statement  Worksheets("SelectedVoyage") is already  referring to the Worksheets  "SelectedVoyage"

what exactly do you want to do?
Avatar of Peter Chan

ASKER

I want to check/confirm whether the worksheet with that name is existing in there, or not?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial