Ken Puls
Active Member
- Joined
- Jun 9, 2003
- Messages
- 484
Hello,
I'm writing code to insert a new required worksheet in many of my current workbooks. A couple of the cells have formulas in them that refer to a named formula. I need to make sure that the formula exists in the current workbook, but am unsure of how to code it.
What I need is to have the following:
If activeworkbook.range.name("date") exists Then
Else msgbox("Your workbook does not contain a named date range!")
Exit sub
End if
Can anyone help?
Thanks,
I'm writing code to insert a new required worksheet in many of my current workbooks. A couple of the cells have formulas in them that refer to a named formula. I need to make sure that the formula exists in the current workbook, but am unsure of how to code it.
What I need is to have the following:
If activeworkbook.range.name("date") exists Then
Else msgbox("Your workbook does not contain a named date range!")
Exit sub
End if
Can anyone help?
Thanks,