Hi there
I have built a tool to display network performance graphs in excel this tool is extracting data from sql database after every 60 minutes These graphs are
displayed on main wall.I have created 3 sets of graphs as per requirement just like a slide show i would like to display these 3 sets of graphs i created on 3 tabs inside worksheet i have used wait function for this purpose with select.sheets() function in a macro its doing great and displaying 3 tabs 1 by by 1 in sequence.Now here is the real issue i am running this macro continuously and its worked as slideshow for me but unfortunately graphs are not updated dynamically when macro is running
I need you help to help me creating macro which can display slideshow without stopping database connection and refresh function
Option Explicit
Sub Wait(tSecs As Single)
' Timer to create a pause
Dim sngSec As Single
sngSec = Timer + tSecs
Do While Timer < sngSec
DoEvents
Loop
End Sub
Sub ExampleWait()
'
Dim x As Long
For x = 1 To 500000
Sheets("Sheet1").Select
Wait 2.5 'Delay for 2.5 second
Sheets("Sheet2").Select
Wait 2.5 'Delay for 2.5 second
Sheets("Sheet3").Select
Wait 2.5 'Delay for 2.5 second
Next x
End Sub
Challenge is on! sorry dont know how to attach file!
I have built a tool to display network performance graphs in excel this tool is extracting data from sql database after every 60 minutes These graphs are
displayed on main wall.I have created 3 sets of graphs as per requirement just like a slide show i would like to display these 3 sets of graphs i created on 3 tabs inside worksheet i have used wait function for this purpose with select.sheets() function in a macro its doing great and displaying 3 tabs 1 by by 1 in sequence.Now here is the real issue i am running this macro continuously and its worked as slideshow for me but unfortunately graphs are not updated dynamically when macro is running
I need you help to help me creating macro which can display slideshow without stopping database connection and refresh function
Option Explicit
Sub Wait(tSecs As Single)
' Timer to create a pause
Dim sngSec As Single
sngSec = Timer + tSecs
Do While Timer < sngSec
DoEvents
Loop
End Sub
Sub ExampleWait()
'
Dim x As Long
For x = 1 To 500000
Sheets("Sheet1").Select
Wait 2.5 'Delay for 2.5 second
Sheets("Sheet2").Select
Wait 2.5 'Delay for 2.5 second
Sheets("Sheet3").Select
Wait 2.5 'Delay for 2.5 second
Next x
End Sub
Challenge is on! sorry dont know how to attach file!