Hi,
I am creating a worksheet in VBA, I would like to create an intelligence, if I run the macro again, it will check if the worksheet exists already, if it exists it will update the existing one. If it doesn't exist, it will create it.
At the moment, with the code below, I am creating my worksheet
txtName is a field which user fills in and Worksheet is created with that name. How can I achieve this?
Thank you.
Cisco 7970
I am creating a worksheet in VBA, I would like to create an intelligence, if I run the macro again, it will check if the worksheet exists already, if it exists it will update the existing one. If it doesn't exist, it will create it.
At the moment, with the code below, I am creating my worksheet
Code:
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = txtName
txtName is a field which user fills in and Worksheet is created with that name. How can I achieve this?
Thank you.
Cisco 7970