Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sporadic problem with Enabling Macros

We're looking for a simple (but will accept a complicaed) answer to this problem ... thanks!

Occasionally (like once every 6-8 times), when enabling macros in a particular Excel workbook (loaded with VBA code and a UserForm), the ap gronks and forces a re-start. Then, when you re-open and re-enable the macros, either (a) everything is fine or (b) you get gronked again. Almost a 50-50 thing. Even more strange: what always seems to ensure a success is to open the file, disable the macros, save the file, open the file, and enable the macros

We're willing to share the workbook with anyone who wishes to see for themselves, and do appreciate your consideration of this matter. Email responses are welcome. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Sporadic problem with Enabling Macros

Chuck: I am by no means an Excel expert, but I have "gronked" myself plenty
of times! Some questions:
(a) Is this workbook stand-alone on a machine? Or on a network? Shared?
(b) When it "gronks", is it always/never/usually when it is opened for the
first time that day? When it is opened when another application is open?
(c) "Loaded with VBA code" - does the code reach out and touch any other
files or applications? If so, are the "gronks" after you've run some code?
(d) Can we assume the file did not appear full-blown with code and
UserForm - that is, it was built up a piece at the time, and worked just
fine, until ...? Until what? What was changed? added? deleted? Was it
done by someone else who might not have been familiar with all the code?
(e) Do you get an error message at "gronk" that you would care to share?
(f) Have you ever checked the Task Manager before opening to make sure
there are no extraneous or questionable processes? After "gronk", have you
ever had to use the TM to end Excel? Or any other app that was touched by
your code?

If you can answer these questions, you'll be well on the way to an answer -
or at least providing enough information for someone to help you better.

Ed

"Chuck Buchanan" wrote in message
...
We're looking for a simple (but will accept a complicaed) answer to this

problem ... thanks!

Occasionally (like once every 6-8 times), when enabling macros in a

particular Excel workbook (loaded with VBA code and a UserForm), the ap
gronks and forces a re-start. Then, when you re-open and re-enable the
macros, either (a) everything is fine or (b) you get gronked again. Almost a
50-50 thing. Even more strange: what always seems to ensure a success is to
open the file, disable the macros, save the file, open the file, and enable
the macros!

We're willing to share the workbook with anyone who wishes to see for

themselves, and do appreciate your consideration of this matter. Email
responses are welcome. Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sporadic problem with Enabling Macros

Ed, thanks ... here are some answers to your pertinent questions

(a) Is this workbook stand-alone on a machine? Or on a network? Shared

STANDALON

(b) When it "gronks", is it always/never/usually when it is opened for th
first time that day? When it is opened when another application is open

ALL OF THE ABOVE ... TOTALLY RANDO

(c) "Loaded with VBA code" - does the code reach out and touch any othe
files or applications? If so, are the "gronks" after you've run some code

VBA CODE EVENTUALLY READS SOME .TXT FILES, BUT EXCEL DIES BEFORE HITTING THAT MO

(d) Can we assume the file did not appear full-blown with code an
UserForm - that is, it was built up a piece at the time, and worked jus
fine, until ...? Until what? What was changed? added? deleted? Was i
done by someone else who might not have been familiar with all the code

YEAH, IT WAS A 2-MAN EFFORT OVER SEVERAL MONTHS ... FIRST NOTICED AROUND THE TIME WE HAD IT FIRE-OFF AN OUTLOOK EMAI

(e) Do you get an error message at "gronk" that you would care to share

OFFICE 2003 AND/OR XP SPITS OUT A VOLUMINOUS ERROR LOG, BUT NO "ERROR 95" STYLE MESSAG

(f) Have you ever checked the Task Manager before opening to make sur
there are no extraneous or questionable processes? After "gronk", have yo
ever had to use the TM to end Excel? Or any other app that was touched b
your code

NEVER CHECKED TM (BUT WILL) ...

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Sporadic problem with Enabling Macros

I'm sure there are those much more in touch with Excel than I who will weigh
in with more valuable opinions, Chuck. But my first guess is that your code
connects with some other process or application that causes a conflict. I
had a problem with certain macros in Word before I realized it was
conflicting with my Outlook, which used Word as editor but a different
template. Have you stepped through everything watching the Immediate and
Locals windows?

Another possibility is that your code may activate a process in another
workbook/document/application, and may want to move on before that process
is accomplished. If I create a workbook and hand it to you to file away,
then rush off to use that workbook before you've finished your task, I'm
going to crash. Or if your code grabs data from another file, then tries to
act on it before the data is copied or the source file deactivated or
whatever, you could have a problem. I crashed one macro several times until
I realized I hadn't changed the focus back to my wkbk1; if wkbk2 wasn't
completely closed and gone by the time that line of code hit, I got this
pretty little message box with an exclamation point. If it's the e-mail
bit, or any other over-the-network process, your problem may have more to do
with your code outrunning your network speed.

That's about tapped out my thoughts for the day. I wish you luck.
Ed

"Chuck Buchanan" wrote in message
...
Ed, thanks ... here are some answers to your pertinent questions:

(a) Is this workbook stand-alone on a machine? Or on a network? Shared?

STANDALONE

(b) When it "gronks", is it always/never/usually when it is opened for

the
first time that day? When it is opened when another application is open?

ALL OF THE ABOVE ... TOTALLY RANDOM

(c) "Loaded with VBA code" - does the code reach out and touch any other
files or applications? If so, are the "gronks" after you've run some

code?

VBA CODE EVENTUALLY READS SOME .TXT FILES, BUT EXCEL DIES BEFORE HITTING

THAT MOD

(d) Can we assume the file did not appear full-blown with code and
UserForm - that is, it was built up a piece at the time, and worked just
fine, until ...? Until what? What was changed? added? deleted? Was it
done by someone else who might not have been familiar with all the code?

YEAH, IT WAS A 2-MAN EFFORT OVER SEVERAL MONTHS ... FIRST NOTICED AROUND

THE TIME WE HAD IT FIRE-OFF AN OUTLOOK EMAIL

(e) Do you get an error message at "gronk" that you would care to share?

OFFICE 2003 AND/OR XP SPITS OUT A VOLUMINOUS ERROR LOG, BUT NO "ERROR 95"

STYLE MESSAGE

(f) Have you ever checked the Task Manager before opening to make sure
there are no extraneous or questionable processes? After "gronk", have

you
ever had to use the TM to end Excel? Or any other app that was touched by
your code?

NEVER CHECKED TM (BUT WILL) ...



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
Enabling Macros Nikhil Excel Worksheet Functions 1 July 9th 08 12:47 PM
Enabling Macros Brian Gregg New Users to Excel 3 September 25th 07 06:32 PM
Enabling Macros Old Music Lover Excel Discussion (Misc queries) 2 July 23rd 05 02:07 AM
macros not enabling James[_10_] Excel Programming 2 September 4th 03 03:04 PM
Enabling macros Tom Ogilvy Excel Programming 0 August 18th 03 03:48 PM


All times are GMT +1. The time now is 03:53 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"