Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Odd behavior

Excel XP & Win XP
I have 2 workbooks.
One wb is open, the other closed.
They both have the same exact code and lots of it, except for one additional
module in the open wb.
I run the code in that one module in the open wb.
The object is to update worksheet data in the open wb from the closed wb.
The problem I am describing occurs when the closed wb is opened.
I step through the code (F8).
I get to the following code:
Application.EnableEvents = False
Set wbFile2 = Workbooks.Open(ThePath & TheFile)
Application.EnableEvents = True
and the screen starts jumping around with visual effects. Pieces of scroll
bars, title bars, etc appear and disappear virtually everywhere on the
screen. Finally, all this action stops and the closed file is now open.
My question: What is happening and why and is this a problem? Thanks for
your time. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Odd behavior

Sounds like a resource issue (memory). The screen in not able to be redrawn
because back ground jobs are running (opening file, clip board operations,
services). Are you trying to copy a large amount of data ot the closed wb?

"Otto Moehrbach" wrote:

Excel XP & Win XP
I have 2 workbooks.
One wb is open, the other closed.
They both have the same exact code and lots of it, except for one additional
module in the open wb.
I run the code in that one module in the open wb.
The object is to update worksheet data in the open wb from the closed wb.
The problem I am describing occurs when the closed wb is opened.
I step through the code (F8).
I get to the following code:
Application.EnableEvents = False
Set wbFile2 = Workbooks.Open(ThePath & TheFile)
Application.EnableEvents = True
and the screen starts jumping around with visual effects. Pieces of scroll
bars, title bars, etc appear and disappear virtually everywhere on the
screen. Finally, all this action stops and the closed file is now open.
My question: What is happening and why and is this a problem? Thanks for
your time. Otto



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Odd behavior

I was stepping through the code. At the point in the code when all the
jumping around was happening all that was happening in the code was the
opening of the one file. No copying/pasting was taking place. I have 3/4
gig of memory and each file is about .8 megs. One file was open and the
other was being opened. Thanks for your time. Otto
"JRForm" wrote in message
...
Sounds like a resource issue (memory). The screen in not able to be
redrawn
because back ground jobs are running (opening file, clip board operations,
services). Are you trying to copy a large amount of data ot the closed wb?

"Otto Moehrbach" wrote:

Excel XP & Win XP
I have 2 workbooks.
One wb is open, the other closed.
They both have the same exact code and lots of it, except for one
additional
module in the open wb.
I run the code in that one module in the open wb.
The object is to update worksheet data in the open wb from the closed wb.
The problem I am describing occurs when the closed wb is opened.
I step through the code (F8).
I get to the following code:
Application.EnableEvents = False
Set wbFile2 = Workbooks.Open(ThePath & TheFile)
Application.EnableEvents = True
and the screen starts jumping around with visual effects. Pieces of
scroll
bars, title bars, etc appear and disappear virtually everywhere on the
screen. Finally, all this action stops and the closed file is now open.
My question: What is happening and why and is this a problem? Thanks
for
your time. Otto





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Odd behavior

Otto,

Even though you may have been stepping through the code, the resources
available on your pc are stretched. Excel code can stress the memory by
storing values in memory as well as other applications that could be running
at the time (virus scanner). Do you get the same result each time you run
the code?

"Otto Moehrbach" wrote:

I was stepping through the code. At the point in the code when all the
jumping around was happening all that was happening in the code was the
opening of the one file. No copying/pasting was taking place. I have 3/4
gig of memory and each file is about .8 megs. One file was open and the
other was being opened. Thanks for your time. Otto
"JRForm" wrote in message
...
Sounds like a resource issue (memory). The screen in not able to be
redrawn
because back ground jobs are running (opening file, clip board operations,
services). Are you trying to copy a large amount of data ot the closed wb?

"Otto Moehrbach" wrote:

Excel XP & Win XP
I have 2 workbooks.
One wb is open, the other closed.
They both have the same exact code and lots of it, except for one
additional
module in the open wb.
I run the code in that one module in the open wb.
The object is to update worksheet data in the open wb from the closed wb.
The problem I am describing occurs when the closed wb is opened.
I step through the code (F8).
I get to the following code:
Application.EnableEvents = False
Set wbFile2 = Workbooks.Open(ThePath & TheFile)
Application.EnableEvents = True
and the screen starts jumping around with visual effects. Pieces of
scroll
bars, title bars, etc appear and disappear virtually everywhere on the
screen. Finally, all this action stops and the closed file is now open.
My question: What is happening and why and is this a problem? Thanks
for
your time. Otto






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Odd behavior

Yes, identical. Since this project is just a one-time thing, I worked
around the problem by telling the user that both files must be open before
running the code. Then I changed the code to not open that second file.
But it still bothers me that Excel would behave like that and I don't know
why. Thanks again. Otto
"JRForm" wrote in message
...
Otto,

Even though you may have been stepping through the code, the resources
available on your pc are stretched. Excel code can stress the memory by
storing values in memory as well as other applications that could be
running
at the time (virus scanner). Do you get the same result each time you run
the code?

"Otto Moehrbach" wrote:

I was stepping through the code. At the point in the code when all the
jumping around was happening all that was happening in the code was the
opening of the one file. No copying/pasting was taking place. I have
3/4
gig of memory and each file is about .8 megs. One file was open and the
other was being opened. Thanks for your time. Otto
"JRForm" wrote in message
...
Sounds like a resource issue (memory). The screen in not able to be
redrawn
because back ground jobs are running (opening file, clip board
operations,
services). Are you trying to copy a large amount of data ot the closed
wb?

"Otto Moehrbach" wrote:

Excel XP & Win XP
I have 2 workbooks.
One wb is open, the other closed.
They both have the same exact code and lots of it, except for one
additional
module in the open wb.
I run the code in that one module in the open wb.
The object is to update worksheet data in the open wb from the closed
wb.
The problem I am describing occurs when the closed wb is opened.
I step through the code (F8).
I get to the following code:
Application.EnableEvents = False
Set wbFile2 = Workbooks.Open(ThePath & TheFile)
Application.EnableEvents = True
and the screen starts jumping around with visual effects. Pieces of
scroll
bars, title bars, etc appear and disappear virtually everywhere on the
screen. Finally, all this action stops and the closed file is now
open.
My question: What is happening and why and is this a problem? Thanks
for
your time. Otto








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
odd behavior Rich[_8_] Excel Discussion (Misc queries) 2 November 20th 08 10:02 PM
Alt+E Behavior Sam Chambers Excel Discussion (Misc queries) 3 June 8th 07 04:23 PM
Very odd behavior Kim K Excel Discussion (Misc queries) 2 May 7th 07 12:41 PM
Odd Tab behavior Jim Thomlinson Excel Programming 1 July 11th 06 05:24 AM
Tab Key Behavior Russ[_9_] Excel Programming 1 May 27th 04 12:52 PM


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