Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Automatically Insert Sheet

Is there a way to have excel automatically add a worksheet
to an excel file upon opening? All files i will be
opening will have only one worksheet. Any direction anyone
could give me would be terrific. thanks, peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Automatically Insert Sheet

Hi Peter

Try this event in the Thisworkbook module

Private Sub Workbook_Open()
Worksheets.Add.Name = Format(Now, "dd-mm-yy h-mm-ss")
End Sub

It will give the sheet a name(Date/Time)

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Peter" wrote in message ...
Is there a way to have excel automatically add a worksheet
to an excel file upon opening? All files i will be
opening will have only one worksheet. Any direction anyone
could give me would be terrific. thanks, peter



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Automatically Insert Sheet

Ron, your advice worked perfectly. thankyou and have a
great weekend. peter



-----Original Message-----
Hi Peter

Try this event in the Thisworkbook module

Private Sub Workbook_Open()
Worksheets.Add.Name = Format(Now, "dd-mm-yy h-mm-ss")
End Sub

It will give the sheet a name(Date/Time)

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Peter" wrote in

message ...
Is there a way to have excel automatically add a

worksheet
to an excel file upon opening? All files i will be
opening will have only one worksheet. Any direction

anyone
could give me would be terrific. thanks, peter



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically insert time in excel but not automatically updated NeueN Excel Worksheet Functions 4 December 25th 08 07:29 AM
create a formula in one sheet that would read data from separate sheet automatically QD Excel Discussion (Misc queries) 0 December 8th 06 04:17 AM
automatically insert row Stephen Excel Discussion (Misc queries) 0 June 12th 06 02:29 PM
Function to automatically insert a new sheet as a result of data entry? Mark Mulik Excel Worksheet Functions 2 November 28th 04 02:21 AM
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B Hannes Heckner Excel Programming 1 March 5th 04 09:10 AM


All times are GMT +1. The time now is 06:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"