Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Open sheet once 1st time xl is open

Hey group,

I have my sheet in excel and only want it to open first
time i open excel during the Morning. I have it in xl
start but i want to enable the user to not have to hide
the sheet and only be bothered by it once in the morning.

Is there a way? Thanks in advance

Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Open sheet once 1st time xl is open

Jeff,

Sure. But it makes more sense to not put the file in the XLStart folder.

It also requires storing data somewhere - the registry is most convenient
for me. Put this code into the workbook open event of a file in your XLStart
folder - Personal.xls would be a good choice. Change the path and filename
as appropriate.

If GetSetting(appName:="OpenRecord", Section:="Startup", _
Key:="Date") < Format(Now(), "mm/dd/yyyy") Then
Workbooks.Open Filename:="C:\Excel\OtherFolder\Open Once.xls"
SaveSetting appName:="OpenRecord", Section:="Startup", _
Key:="Date", setting:=Format(Now(), "mm/dd/yyyy")
End If

HTH,
Bernie
MS Excel MVP

"jeff" wrote in message
...
Hey group,

I have my sheet in excel and only want it to open first
time i open excel during the Morning. I have it in xl
start but i want to enable the user to not have to hide
the sheet and only be bothered by it once in the morning.

Is there a way? Thanks in advance

Jeff



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Open sheet once 1st time xl is open

Jeff,

On second thought, you could use this code in the open event of the file of
interest, located in the XLStart folder:

If GetSetting(appName:="OpenRecord", Section:="Startup", _
Key:="Date") = Format(Now(), "mm/dd/yyyy") Then
ThisWorkbook.Close False
Else
SaveSetting appName:="OpenRecord", Section:="Startup", _
Key:="Date", setting:=Format(Now(), "mm/dd/yyyy")
End If

HTH,
Bernie
MS Excel MVP

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Jeff,

Sure. But it makes more sense to not put the file in the XLStart folder.

It also requires storing data somewhere - the registry is most convenient
for me. Put this code into the workbook open event of a file in your

XLStart
folder - Personal.xls would be a good choice. Change the path and filename
as appropriate.

If GetSetting(appName:="OpenRecord", Section:="Startup", _
Key:="Date") < Format(Now(), "mm/dd/yyyy") Then
Workbooks.Open Filename:="C:\Excel\OtherFolder\Open Once.xls"
SaveSetting appName:="OpenRecord", Section:="Startup", _
Key:="Date", setting:=Format(Now(), "mm/dd/yyyy")
End If

HTH,
Bernie
MS Excel MVP

"jeff" wrote in message
...
Hey group,

I have my sheet in excel and only want it to open first
time i open excel during the Morning. I have it in xl
start but i want to enable the user to not have to hide
the sheet and only be bothered by it once in the morning.

Is there a way? Thanks in advance

Jeff





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
ON OPEN VBA Code input incorrectly now excel sheet wont open mmartin New Users to Excel 1 February 16th 11 11:33 PM
Why does a Multi-sheet/user file open on sheet two every time? Frustrated in NJ Excel Discussion (Misc queries) 1 January 22nd 10 05:46 PM
Time to open spread sheet STS Excel Discussion (Misc queries) 4 December 21st 06 08:54 PM
Can Excel open a new application every time you open a file? shoon Setting up and Configuration of Excel 0 December 13th 05 03:28 PM
How do I stop Excel from closing the open file each time I open a. Welsin Setting up and Configuration of Excel 3 January 8th 05 11:16 PM


All times are GMT +1. The time now is 03:36 PM.

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

About Us

"It's about Microsoft Excel"