create worksheets

julie_nickb

New Member
Joined
Sep 13, 2018
Messages
46
Office Version
  1. 365
Hello,

Just getting started in VBA.

- I would like to create new worksheets in VBA. The name of the worksheet is in a cell.
- Would like to verify that the sheet name is valid, send a message if it is not, and make the cell with the incorrect name active so that it could be corrected
- Would like to make sure that the sheet does not yet exist,
send a message if it does, and make the cell with the duplicate name active so that it could be either corrected or to cancel the sheet creation.

Thank you for your help.

Julie
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi
where do you like to store the name of the worksheet in one cell? What is a valid sheetname or what is not?
Have you worked with VBA before or are you completly new to VBA?
 
Upvote 0
Thanks for your response.
More simply, I would like to use data validation to determine whether the cell contains a valid worksheet name, and then create the worksheet.
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top