Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Auto Macro and Locked PC

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Auto Macro and Locked PC

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Auto Macro and Locked PC

Yes, however, windows scheduler works fine. My User name and pw is stored.
The scheduler kicks of the access macro first and access calls excel. Its
when the excel macro begins, the code appears to be stuck ONLY when the pc is
in a locked state.

"John Bundy" wrote:

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Auto Macro and Locked PC

Could excel be waiting for a user to allow macros to run?

Could your code be waiting for a user to dismiss a msgbox?

Vinny P wrote:

Yes, however, windows scheduler works fine. My User name and pw is stored.
The scheduler kicks of the access macro first and access calls excel. Its
when the excel macro begins, the code appears to be stuck ONLY when the pc is
in a locked state.

"John Bundy" wrote:

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Auto Macro and Locked PC

Thats what it seems like, but the macro does not require user input. No
message boxes. Perhaps it is something in my code preventing excel from
running while locked?

"Dave Peterson" wrote:

Could excel be waiting for a user to allow macros to run?

Could your code be waiting for a user to dismiss a msgbox?

Vinny P wrote:

Yes, however, windows scheduler works fine. My User name and pw is stored.
The scheduler kicks of the access macro first and access calls excel. Its
when the excel macro begins, the code appears to be stuck ONLY when the pc is
in a locked state.

"John Bundy" wrote:

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default Auto Macro and Locked PC

If it is waiting for someone to approve macro's as Dave suggested, you can
get a certificate such as selfcert (the one i use, free) and you can
digitally sign your work, once accepted, the accept macro box no longer shows
up.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

Thats what it seems like, but the macro does not require user input. No
message boxes. Perhaps it is something in my code preventing excel from
running while locked?

"Dave Peterson" wrote:

Could excel be waiting for a user to allow macros to run?

Could your code be waiting for a user to dismiss a msgbox?

Vinny P wrote:

Yes, however, windows scheduler works fine. My User name and pw is stored.
The scheduler kicks of the access macro first and access calls excel. Its
when the excel macro begins, the code appears to be stuck ONLY when the pc is
in a locked state.

"John Bundy" wrote:

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Auto Macro and Locked PC

Or change the security level to the lowest choice to allow every macro to run.
MS doesn't recommend this.

Vinny P wrote:

Thats what it seems like, but the macro does not require user input. No
message boxes. Perhaps it is something in my code preventing excel from
running while locked?

"Dave Peterson" wrote:

Could excel be waiting for a user to allow macros to run?

Could your code be waiting for a user to dismiss a msgbox?

Vinny P wrote:

Yes, however, windows scheduler works fine. My User name and pw is stored.
The scheduler kicks of the access macro first and access calls excel. Its
when the excel macro begins, the code appears to be stuck ONLY when the pc is
in a locked state.

"John Bundy" wrote:

Does your machine require you to sign on with a password? I built an auto
scheduler and found that newer (2003+) versions of windows require that a
password be set on the machine, or the machine has to be unlocked to run a
scheduled task. Someone else might have more info on the subject.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Vinny P" wrote:

I created a auto run macro in Excel using VBA. An access database kicks off
via windows scheduler and creates data files needed by excel. Once the files
have been created, before access closes, it opens the excel spreadsheet where
the auto run macro is stored. This process is set for early in the morning,
but it seems to stall or "pause" after excel starts. Once I unlock the
machine, the macro "unpauses". Is this an excel issue? Is their code to
prevent this from happening?


--

Dave Peterson


--

Dave Peterson
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
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
Auto Fill with some references locked [email protected] Excel Discussion (Misc queries) 3 February 28th 06 05:50 PM
run a macro in a locked cell Ray Excel Discussion (Misc queries) 8 January 10th 06 12:02 AM
Locked Macro Project Dennis Slattery Excel Discussion (Misc queries) 0 December 1st 05 02:17 AM
Macro - Playing Macro if cells are locked sonar[_5_] Excel Programming 1 May 1st 04 03:13 AM


All times are GMT +1. The time now is 09:00 AM.

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"