Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select sheet, Pause till Enter pressed, return to previous sheet

As the title says, I have a macro which, when run, is designed simply
to switch to a sheet of reference materials, pause till the user hits
enter or some other input, then returns to the previous sheet.

I originally tried using a MsgBox, but it blocks the information on
the screen, so I am hoping there is some Other way to do this.

Thanks,
Russ

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Select sheet, Pause till Enter pressed, return to previous sheet

Hi Russ

You could try using application.sendkeys,

add this code to a new module

Sub ShowSheet()
Sheets("sheet3").Activate 'Change to the name of the sheet you want to
show
End Sub

Then in the sheet you want to show until the user presses enter (for
this code it's sheet3) add the following code

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.SendKeys (ENTER)
Sheets("sheet2").Activate
End Sub

this will change back to sheet2 when the user presses enter

hope this helps you out

S

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
How to return to the previous active sheet after hyperlink? Terry Excel Worksheet Functions 5 March 21st 10 02:53 AM
transfer contents from a cell in previous sheet if the sheet is a DarkNight New Users to Excel 1 September 9th 08 01:04 AM
Copying the repeated data of the previous sheet to the next sheet Sasikiran Excel Discussion (Misc queries) 1 September 25th 07 03:18 PM
Return to Previous Sheet Hazel Excel Programming 3 May 9th 07 07:17 PM
Hyperlink or Other Method To Return To Previous Location (Sheet) Possible? Mhz New Users to Excel 4 August 1st 06 11:39 AM


All times are GMT +1. The time now is 02:26 AM.

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

About Us

"It's about Microsoft Excel"