ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print Preview (https://www.excelbanter.com/excel-programming/302292-print-preview.html)

ianripping[_77_]

Print Preview
 
I am using a macro to enable the user to open the print preview mode
When they click on close, excel takes them to a programming pages, a
that is the last of the selected sheets. I would like excel to take th
user back to "Index" sheet.

Any ideas on how I do this

--
Message posted from http://www.ExcelForum.com


Charles

Print Preview
 
ianripping


Try something like this in your code. After your code has fiished i
should activate your index sheet. put it at the end of your code.

Worksheets("Index").Activate


Charle

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 08:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com