Link to home
Start Free TrialLog in
Avatar of Jagwarman
Jagwarman

asked on

Iif cell contains same name as any sheet in workbook copy sheet

with VBA I want to copy a sheet where the name in cell M14 has the name of the sheet.

i.e. if M14 = Option 3 copy the sheet name Option 3

i.e. if M14 = Option 10 copy the sheet name Option 10

Thanks in advance
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

on error resume next
sheets(m14).copy
on error goto 0
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore 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