Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am very new to Excel VBA programming.
I want to write a sample command to check if there is an existing Exce worksheet, say for example called "Report". If there is an existing worksheet, then it should be deleted Otherwise, a new worksheet called "Report" should be created. Here is the program code. Can anyone please help me with the firs line??? If ???? (there is a worksheet called "report") Then Sheets("Report").Delete Else Sheets.Add ActiveSheet.Name = "Report" End If Thanks! -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel programing | Excel Discussion (Misc queries) | |||
Programing Outlook using Excel | Excel Programming | |||
programing reference worksheet | Excel Programming | |||
help with excel programing | Excel Programming | |||
Excel Programing Resources | Excel Programming |