LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Macro locks me in a single XLS file

Hello,
i have a macro that once every second reads all the rows in a worksheet,
does some comparisons and when the comparisons have success it shows a
simple form. [The data inside the sheet come from a DDE link in real time]

The problem is that when this macro is running (it keeps running in loop
with a 1 second pause [with a small loop with doevents] between each
loop) i cannot switch to a different XLS file.

Let me explain better...
lets say that i have two XLS files open at the same time... they have
their own "button" on the taskbar, clicking one of them i can switch
from one XLS file to the other...

Ok... this works... but NOT when the macro is running on the first XLS
file. In some way, when i click on the taskbar button of the second XLS
file, the focus goes back automatically to the first XLS file.

Inside the same XLS file, thanx to the doevents, i have no
restrictions... i can change worksheet, change cells, etc... all this
while the Macro is running... the problem happens only when i have more
than one XLS file open and want to switch to the other XLS file.

Thanx,
Luca
 
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
Saving Excel file locks up all memory resources, accesses externalfile? [email protected] Excel Discussion (Misc queries) 4 December 21st 07 11:01 PM
Save a single worksheet in Excel as a single file. Dakota New Users to Excel 4 February 22nd 06 04:46 PM
calc locks up after running a macro that moves sheets to a new fil shibao Excel Discussion (Misc queries) 0 November 7th 05 10:58 PM
file "save as" to floppy locks up Commodore Excel Discussion (Misc queries) 4 September 16th 05 10:17 AM
Excel data query locks source file jim.bahr Excel Discussion (Misc queries) 0 June 10th 05 05:48 AM


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