Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Check changes on a sheet

I hope somebody can help me out on this one, because I am seriously
stuck and quite desperate too.
I have a sheet full of formulas that update the sheet in real time
with info from bloomberg. Unfortunately, every now and then the
bloomberg service crashes and the screen stops updating, but nobody
realizes it. So the question is:
Is there a way of writing a macro that every 2 minutes will see if
there have been any changes (in the last 2 minutes) on the sheet, and
if there aren't any have an alert pop-up message appear? Possibly with
an alert sound too (default windows or whatever, I don't care)?
Thanks for any help you guys out there can give me.
Lorenzo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Check changes on a sheet

Hi Lorenzo,

this may help ...
http://support.microsoft.com/default...nt/onevent.asp

Guido

HoloGuides
Made for You
http://HoloGuides.com/programming/ExcelVBA

"Lorenzo" schrieb im Newsbeitrag
m...
I hope somebody can help me out on this one, because I am seriously
stuck and quite desperate too.
I have a sheet full of formulas that update the sheet in real time
with info from bloomberg. Unfortunately, every now and then the
bloomberg service crashes and the screen stops updating, but nobody
realizes it. So the question is:
Is there a way of writing a macro that every 2 minutes will see if
there have been any changes (in the last 2 minutes) on the sheet, and
if there aren't any have an alert pop-up message appear? Possibly with
an alert sound too (default windows or whatever, I don't care)?
Thanks for any help you guys out there can give me.
Lorenzo



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Check changes on a sheet

Thank you both for your help, but I'm afraid I didn't make myself
quite clear.
My problem is not having the macro run every two minutes, but to have
excel compare the sheet to what it was like 2 minutes before. Hence
the code should run every two minutes something like

If "value in all cells is different from 2 minutes ago (or last time
macro was run)" then end sub
else msgbox "Verify connection to updating service"

I'm pretty much stuck with the comparing the the present excel sheet
with what it looked like 2 minutes before. It probably involves saving
a copy of the sheet somewhere, maybe on a new hidden sheet, at the end
of the macro, to be used by the next macro cyle, so the code would be
something like

if "sheet1 = hiddensheet" then msgbox "Verify connection etc"
else sheets("sheet1").select
selection.copy
sheets("hiddensheet").activate
paste values
end sub

this way the macro would actually have a sheet to compare sheet1 to,
which is maybe easier than having excel keep track of any changements.
Still, I'm more than puzzled by the comparing part. Unless there is a
way of having excel verify at least one cell is modified every two
minnutes, I'm quite convinced this is the way to go... So does anybody
have an idea to compare the two sheets?

Thanks again for any help you can give.

Lorenzo
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
Check Activesheet for chart sheet or work sheet NSK Charts and Charting in Excel 1 July 17th 07 09:00 PM
How do I use 1 excel sheet to check another? Pawan Excel Discussion (Misc queries) 3 August 14th 06 08:33 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
how to use sumif function to check date in 1 sheet is < 2 sheet Bharat Saboo Excel Worksheet Functions 3 December 30th 05 07:10 AM
check if sheet exists Ross[_6_] Excel Programming 3 July 25th 03 06:46 PM


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