Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default start a macro everytime excel opens

Hey group,

I have a macro for recording time worked during the
business day. I was wondering if it is possible to open a
sheet with a macro every time i start excel for the first
time in the morning only. I dont want it to update every
time its opened or closed i want to enable the end user on
that regard by clicking the button so they dont forget to
clock in and out

Regards and thanks

Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default start a macro everytime excel opens

Hi
why not put this file in the XLStart folder?. This way each time you
open Excel this file is opened also

--
Regards
Frank Kabel
Frankfurt, Germany


Jeff wrote:
Hey group,

I have a macro for recording time worked during the
business day. I was wondering if it is possible to open a
sheet with a macro every time i start excel for the first
time in the morning only. I dont want it to update every
time its opened or closed i want to enable the end user on
that regard by clicking the button so they dont forget to
clock in and out

Regards and thanks

Jeff


  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default start a macro everytime excel opens

Thanks Frank,

But i was trying to have it open only the first time
during the day when i come in usually before 9 and hide
after that so it doesnt pop up all the time. I appreciate
your help though

Jeff



-----Original Message-----
Hi
why not put this file in the XLStart folder?. This way

each time you
open Excel this file is opened also

--
Regards
Frank Kabel
Frankfurt, Germany


Jeff wrote:
Hey group,

I have a macro for recording time worked during the
business day. I was wondering if it is possible to open

a
sheet with a macro every time i start excel for the

first
time in the morning only. I dont want it to update every
time its opened or closed i want to enable the end user

on
that regard by clicking the button so they dont forget

to
clock in and out

Regards and thanks

Jeff


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default start a macro everytime excel opens

How about an addin that has a name containing the date the addin was last
opened?

Something like this:
Sub TimeChecker()
On Error Resume Next
x = ThisWorkbook.Names("LastOpened").Name
If Err.Number < 0 Then
Names.Add Name:="LastOpened", RefersTo:=Date
On Error GoTo 0
'run sub here
Else
If CDate(Right(ThisWorkbook.Names("LastOpened").Refer sTo, 5)) <
Date Then
ThisWorkbook.Names("LastOpened").RefersTo = Date
On Error GoTo 0
'run sub here
End If
End If
End Sub

Cheers,

Jeff


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

I have a macro for recording time worked during the
business day. I was wondering if it is possible to open a
sheet with a macro every time i start excel for the first
time in the morning only. I dont want it to update every
time its opened or closed i want to enable the end user on
that regard by clicking the button so they dont forget to
clock in and out

Regards and thanks

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
Excel opens 2 blank workbooks at start-up. How to correct this? Baanwestwood Excel Discussion (Misc queries) 1 May 25th 07 02:59 PM
Turn off "Reviewing" toolbar that opens at eXcel start? Ric Setting up and Configuration of Excel 2 March 10th 06 06:41 PM
auto numbering an exel work book sheet everytime it opens or print Rugby Al Excel Discussion (Misc queries) 1 July 19th 05 06:20 PM
Runnig a macro when excel opens vman Excel Programming 3 December 18th 03 06:41 PM
start a macro when file opens?? Ftca Excel Programming 2 October 30th 03 12:47 PM


All times are GMT +1. The time now is 10:13 PM.

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"