Thread: If statement
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Joe[_9_] Joe[_9_] is offline
external usenet poster
 
Posts: 18
Default If statement

I am trying to write a macro that renames worksheets. My problem is I don't
always have the same worksheets in each workbook. I would appreciate it if
someone could give me some direction on how to write the if statement so
that if the called out worksheet doesn't exist then it is skipped and the
macro doesn't error out. Thank you in advance.

Joe