Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User switching between sheets while data is being logged


Hello and thanks very much for any help you might give me,

I wrote a VBA which collects and logs data coming in through a serial
port. The data is being logged into several different excel sheets.
But while it is logging, the user cannot actively switch between the
sheets to view its progress. Does anyone know of a way to do this???

Thanks,
Steve


--
steve28
------------------------------------------------------------------------
steve28's Profile: http://www.excelforum.com/member.php...o&userid=37195
View this thread: http://www.excelforum.com/showthread...hreadid=569070

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default User switching between sheets while data is being logged

Steve,

I think you would need to use the Ontime event to schedule the data-logging macro to be run again:
If once a second is good....

Sub DoData()
NextTime = Now + TimeValue("00:00:01")
'Do your data logging here, just once
Application.OnTime NextTime, "DoData"
End Sub

Sub StopLogging()
Application.OnTime NextTime, "DoData", schedule:=False
End Sub

HTH,
Bernie
MS Excel MVP


"steve28" wrote in message
...

Hello and thanks very much for any help you might give me,

I wrote a VBA which collects and logs data coming in through a serial
port. The data is being logged into several different excel sheets.
But while it is logging, the user cannot actively switch between the
sheets to view its progress. Does anyone know of a way to do this???

Thanks,
Steve


--
steve28
------------------------------------------------------------------------
steve28's Profile: http://www.excelforum.com/member.php...o&userid=37195
View this thread: http://www.excelforum.com/showthread...hreadid=569070



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
Getting Logged in User Name in formula... Kedar Agarkar Excel Discussion (Misc queries) 9 October 30th 07 04:55 PM
Getting Logged in User Name in formula... Kedar Agarkar Excel Worksheet Functions 9 October 30th 07 04:55 PM
Auto Updating the Logged in User DCHims Excel Discussion (Misc queries) 1 September 4th 07 07:58 PM
How do you reference the logged on user name in excel? Taurus Excel Discussion (Misc queries) 2 January 24th 06 08:38 PM
Find Out Logged in User Nigel Excel Programming 2 August 30th 05 06:17 AM


All times are GMT +1. The time now is 08:56 PM.

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"