Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Condtional Alert/Popup

I have and excel sheet linked to live commodity prices. Is it possible to
have a window pop up over my other windows or have excel maximize
automatically if the price reaches a certain level?

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 310
Default Condtional Alert/Popup

Perhaps you can write a sub that activates your worksheet once the threshold
is met, and you can use a timer to keep re-running the sub until the price
you are looking for appears. This site shows you how set up a timer sub...
http://www.cpearson.com/excel/OnTime.aspx

I was thinking something like...
Say the cell that has the price that you want to monitor is A1, the
threshold price you want is in B1, and the worksheet name that you want
activated once the threshold is met is in C1. To get the sheet name in C1
(assuming this cell is in the worksheet you would like activated once you
have success) you would need the formula
=MID(CELL("filename",C1),FIND("]",CELL("filename",C1))+1,255)
This way if the sheet name changes you will still be able to activate that
worksheet. If that's overkill for you replace
ThisWorkbook.Worksheets(sheetName).Activate
with
ThisWorkbook.Activate


Sub priceCheck()
Dim flag As Boolean
Dim sheetName As String
flag = true
sheetName = Range("C1")
If Range ("A1") = Range("B1") Then
ThisWorkbook.Worksheets(sheetName).Activate
flag = false
End If
If flag Then
Call StartTimer()
'you would set up StartTimer based on the above website
End If
End Sub

I haven't tried running this, but hopefully this gets you on the right path.
Good luck.

--
Michelle
"Anyone who says he can see through women is missing a lot." Groucho Marx


"MIKJ6" wrote:

I have and excel sheet linked to live commodity prices. Is it possible to
have a window pop up over my other windows or have excel maximize
automatically if the price reaches a certain level?

Thank you in advance.

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
Condtional Formatting PAL Excel Worksheet Functions 11 January 3rd 08 07:34 PM
Condtional Format Dave Excel Discussion (Misc queries) 3 July 18th 07 02:05 AM
condtional format to Todd Excel Worksheet Functions 0 June 16th 06 05:52 PM
Condtional formating -- any wildcard use? MatthewTap Excel Discussion (Misc queries) 5 September 30th 05 12:37 AM
Condtional formatting 68magnolia71 Excel Worksheet Functions 2 April 15th 05 09:46 PM


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