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
Microsoft ExcelVBA

Avatar of undefined
Last Comment
Ryan Chong

8/22/2022 - Mon
Saqib Husain

on error resume next
sheets(m14).copy
on error goto 0
ASKER CERTIFIED SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck