PC Review


Reply
Thread Tools Rate Thread

Computer freezes when user clicks "enable" macros

 
 
Brad
Guest
Posts: n/a
 
      23rd Apr 2008
I have created a quote template that is all based in userforms, which I
created in XP SP2 with office 2003 SP3. Most users are able to use the
template, however a couple of users are experiencing problems. When they
click on "Enable Macros" at the Security Warning box before opening the
sheet, Excel completely freezes. There is a little bit of code in 'This
Workbook'. The code is:

--------------------------------------------------------------
Option Explicit
Public BooleanForClosing As Boolean
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Unload Formalstep1
Unload Formalstep2
Unload FormalStep3
Unload Quickquote1
Unload Tools
End Sub
Private Sub Workbook_Open()
Dim awb As Workbook
Set awb = ActiveWorkbook
awb.Activate
Sheets("Tools").Range("A1").Value = ""
Dim usrid As String
usrid = Environ("Username")
Sheets("Data").Range("K123").Value = usrid
End Sub
--------------------------------------------------------------
Any glaring reason why they could be hanging? I currently do not know their
OS or Excel version, I've asked them to provide it.

Any help is appreciatable. Thanks.
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      23rd Apr 2008
I t may be that shell commands have been disabled on the PC. Try a simple
test. From the Start Button - Select run. Then type into run box cmd.exe
and see if a DOS window opens. The Environ command I think runs cmd.exe. I
know of some companies that have disabled the shell window on PC's.

"Brad" wrote:

> I have created a quote template that is all based in userforms, which I
> created in XP SP2 with office 2003 SP3. Most users are able to use the
> template, however a couple of users are experiencing problems. When they
> click on "Enable Macros" at the Security Warning box before opening the
> sheet, Excel completely freezes. There is a little bit of code in 'This
> Workbook'. The code is:
>
> --------------------------------------------------------------
> Option Explicit
> Public BooleanForClosing As Boolean
> Private Sub Workbook_BeforeClose(Cancel As Boolean)
> Unload Formalstep1
> Unload Formalstep2
> Unload FormalStep3
> Unload Quickquote1
> Unload Tools
> End Sub
> Private Sub Workbook_Open()
> Dim awb As Workbook
> Set awb = ActiveWorkbook
> awb.Activate
> Sheets("Tools").Range("A1").Value = ""
> Dim usrid As String
> usrid = Environ("Username")
> Sheets("Data").Range("K123").Value = usrid
> End Sub
> --------------------------------------------------------------
> Any glaring reason why they could be hanging? I currently do not know their
> OS or Excel version, I've asked them to provide it.
>
> Any help is appreciatable. Thanks.

 
Reply With Quote
 
Brad
Guest
Posts: n/a
 
      23rd Apr 2008
Thanks Joel. If that is the case, would a simple 'On Error Resume Next' fix
it? Or how would handle it?

Thanks again!

"Joel" wrote:

> I t may be that shell commands have been disabled on the PC. Try a simple
> test. From the Start Button - Select run. Then type into run box cmd.exe
> and see if a DOS window opens. The Environ command I think runs cmd.exe. I
> know of some companies that have disabled the shell window on PC's.
>
> "Brad" wrote:
>
> > I have created a quote template that is all based in userforms, which I
> > created in XP SP2 with office 2003 SP3. Most users are able to use the
> > template, however a couple of users are experiencing problems. When they
> > click on "Enable Macros" at the Security Warning box before opening the
> > sheet, Excel completely freezes. There is a little bit of code in 'This
> > Workbook'. The code is:
> >
> > --------------------------------------------------------------
> > Option Explicit
> > Public BooleanForClosing As Boolean
> > Private Sub Workbook_BeforeClose(Cancel As Boolean)
> > Unload Formalstep1
> > Unload Formalstep2
> > Unload FormalStep3
> > Unload Quickquote1
> > Unload Tools
> > End Sub
> > Private Sub Workbook_Open()
> > Dim awb As Workbook
> > Set awb = ActiveWorkbook
> > awb.Activate
> > Sheets("Tools").Range("A1").Value = ""
> > Dim usrid As String
> > usrid = Environ("Username")
> > Sheets("Data").Range("K123").Value = usrid
> > End Sub
> > --------------------------------------------------------------
> > Any glaring reason why they could be hanging? I currently do not know their
> > OS or Excel version, I've asked them to provide it.
> >
> > Any help is appreciatable. Thanks.

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      23rd Apr 2008
I don't think so. I believe it is getting hung up in the operating system
and not in Excel. Try it any way. It may be that the computer is missing
the cnd or cmd is corrupted. Replacing the CMD may fix the problem if you
have the correct priledges to make the change.

Do a search on your computer for CMD in the windows directory. I'm not sure
which version of the CMD is being used by Excel.

"Brad" wrote:

> Thanks Joel. If that is the case, would a simple 'On Error Resume Next' fix
> it? Or how would handle it?
>
> Thanks again!
>
> "Joel" wrote:
>
> > I t may be that shell commands have been disabled on the PC. Try a simple
> > test. From the Start Button - Select run. Then type into run box cmd.exe
> > and see if a DOS window opens. The Environ command I think runs cmd.exe. I
> > know of some companies that have disabled the shell window on PC's.
> >
> > "Brad" wrote:
> >
> > > I have created a quote template that is all based in userforms, which I
> > > created in XP SP2 with office 2003 SP3. Most users are able to use the
> > > template, however a couple of users are experiencing problems. When they
> > > click on "Enable Macros" at the Security Warning box before opening the
> > > sheet, Excel completely freezes. There is a little bit of code in 'This
> > > Workbook'. The code is:
> > >
> > > --------------------------------------------------------------
> > > Option Explicit
> > > Public BooleanForClosing As Boolean
> > > Private Sub Workbook_BeforeClose(Cancel As Boolean)
> > > Unload Formalstep1
> > > Unload Formalstep2
> > > Unload FormalStep3
> > > Unload Quickquote1
> > > Unload Tools
> > > End Sub
> > > Private Sub Workbook_Open()
> > > Dim awb As Workbook
> > > Set awb = ActiveWorkbook
> > > awb.Activate
> > > Sheets("Tools").Range("A1").Value = ""
> > > Dim usrid As String
> > > usrid = Environ("Username")
> > > Sheets("Data").Range("K123").Value = usrid
> > > End Sub
> > > --------------------------------------------------------------
> > > Any glaring reason why they could be hanging? I currently do not know their
> > > OS or Excel version, I've asked them to provide it.
> > >
> > > Any help is appreciatable. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable macros - security settings are at "enable all macros" Vie Microsoft Excel Programming 1 29th Sep 2008 03:17 PM
how do I "enable macros" on this project-"says it's disabled" sunflower Microsoft Word Document Management 0 14th Dec 2007 05:56 AM
"openinf file..."ENABLE MACROS...DISABLE MACROS" =?Utf-8?B?Ri4gTGF3cmVuY2UgS3VsY2hhcg==?= Microsoft Excel Misc 3 12th Sep 2006 10:33 AM
Each time user clicks on "chart" a "chart tool box" appears.. can I disable? Kenji Microsoft Excel Worksheet Functions 0 29th Dec 2003 08:42 PM
Can user enable macros after accidently chosing "open disabled"? Ed Microsoft Excel Misc 3 26th Nov 2003 09:32 PM


Features
 

Advertising
 

Newsgroups
 


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