I have a file that I have created for users and I am able to get the retrieve functioning to work. I have been able to set parameters to unhide the worksheet and rehide the worksheet however when it rehides the worksheet Essbase has not completed its retrieve and goes back to the summary page.(which is not a retrieveable worksheet) The coding is below any help is greatly appreciated.
Application.ScreenUpdating = False
Sheets("DTActual").Visible = True
Sheets("DTActual").Activate
SendKeys AltKey & "(SR)", False
Application.Wait Now + TimeValue("00:00:01")
Sheets("DTActual").Visible = False
Application.ScreenUpdating = True
Application.ScreenUpdating = False
Sheets("DTActual").Visible = True
Sheets("DTActual").Activate
SendKeys AltKey & "(SR)", False
Application.Wait Now + TimeValue("00:00:01")
Sheets("DTActual").Visible = False
Application.ScreenUpdating = True