I have a set of sheets in a workbook. I have names of the sheets in a particular column on one of the sheets. This workbook will be displayed on a monitor/dashboard. Is there a way i can loop through the sheets and show them one-by-one.
Eg, the book as 2 sheets. Sheet1 and Sheet2. When i run the macro, the Sheet1 should b e visible on the screen for 5 seconds, then Sheet2 for 5 seconds. then Shhet1 (loop).
I am able to add the time delay and loop, however just not able to change display of sheet. I have tried below methods this doesnt work
Application.ScreenUpdating = True
Worksheets("Sheet1").Activate
Worksheets("Sheet1").Select
update :
thanks all for your responses. I have tried all, but could not get it to work. When i run the code, the sheet display doesnt change. Eg, is my workbook has three sheets Sheet1, Sheet2 and Sheet3 and i write the code to display sheet1 for 10 sec, sheet2 for 10 secs and sheet3 for 10 sec in that order, during execution excel is stuck on the sheet from where i started the macro for 30 secs and displays the final sheet (sheet3). Not sure if this is because of some settings in the code/application.
Anyways, since this is not working, i have decided to copy the charts from excel to a powerpoint (by vba) and use the ppt to display on the dashboards. I have used the code provided in the below link.
thanks once again for your suggestions
Worksheets("Sheet2").Activate
, you should be able to activate Sheet2, is that what you want? – sam092