Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reverting to first page on exit

Is there a way of making an excel file revert to the first page each
time the file is closed. If possible is it something that can be put in
this thread (text) so I can copy and past it into note pad and then be
able to use it? I am unable to download off the internet on this
computer.
Yhanks in advance for any help anyone can give.


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default reverting to first page on exit

Best to do it workbook open

Private Sub Workbook_Open()
Worksheets(1).Activate
End Sub

put this in the ThisWorkbook code module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"mhillis " wrote in message
...
Is there a way of making an excel file revert to the first page each
time the file is closed. If possible is it something that can be put in
this thread (text) so I can copy and past it into note pad and then be
able to use it? I am unable to download off the internet on this
computer.
Yhanks in advance for any help anyone can give.


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default reverting to first page on exit

You can use this event for this

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets(1).Select
End Sub

Right click on the Excel icon next to File in the menubar
And choose View code

You are now in the Thisworkbook module
Paste the Event in this place
Alt-Q to go back to Excel
Save the file


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"mhillis " wrote in message ...
Is there a way of making an excel file revert to the first page each
time the file is closed. If possible is it something that can be put in
this thread (text) so I can copy and past it into note pad and then be
able to use it? I am unable to download off the internet on this
computer.
Yhanks in advance for any help anyone can give.


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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default reverting to first page on exit

now is there anyway to get the first page to be the page opened when the
file is opened, now matter what page the file was saved on?


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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default reverting to first page on exit

Hi

now is there anyway to get the first page to be the page opened when the
file is opened, now matter what page the file was saved on?



If you save the file one time with Sheet1 active then
this event is doing this if you not use the save button.
If you close the file with the X or FileClose this is working

But you can use this to select sheet1 when you open the workbook

Private Sub Workbook_Open()
Sheets(1).Select
End Sub

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"mhillis " wrote in message ...
now is there anyway to get the first page to be the page opened when the
file is opened, now matter what page the file was saved on?


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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default reverting to first page on exit

I've already given you that!

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"mhillis " wrote in message
...
now is there anyway to get the first page to be the page opened when the
file is opened, now matter what page the file was saved on?


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



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
Reverting Chart T Maddux Charts and Charting in Excel 0 September 3rd 08 01:17 AM
Cells reverting to Text Format duketter Excel Discussion (Misc queries) 0 August 4th 08 08:11 PM
Links reverting Wanson Excel Discussion (Misc queries) 0 December 12th 05 09:49 AM
Reverting formats [email protected] Excel Discussion (Misc queries) 3 December 8th 05 09:15 PM
cells reverting Ming Excel Discussion (Misc queries) 3 May 11th 05 06:52 AM


All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"