LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User Guided Button???


Hi guys,

I have 100 worksheets all with different names and a main menu. Fro
the main menu I want to be able to press a button that opens an inpu
box in which I can type the name of the worksheet I want to go to an
then a macro will take me to that worksheet.

I've been experimenting and have the following code in VB. It brings u
an input box but then whenever I enter anything and click OK, an erro
message appears. Could anyone give me a hand???

Thanks

Mark

Heres my code:-

Sub RoundToZero()
Worksheets("Main Page").Activate
On Error GoTo PressedCancel
Set Pub = Application.inputbox( _
prompt:="Enter your EKR Pubn Code", _
Type:=0)
Worksheets("Pub").Activate

Exit Sub

PressedCancel:
Resume
End Su

--
locutus24
-----------------------------------------------------------------------
locutus243's Profile: http://www.excelforum.com/member.php...fo&userid=1286
View this thread: http://www.excelforum.com/showthread.php?threadid=48342

 
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
Excel users! Do-It-Yourself Dashboards, Reports, Guided Analytics and Business Presentations! Johnny[_3_] Charts and Charting in Excel 4 February 27th 08 09:27 AM
Excel users! Do-It-Yourself Dashboards, Reports, Guided Analytics and Business Presentations! Don Guillett Excel Discussion (Misc queries) 3 February 27th 08 09:27 AM
User guided button??? locutus243 Excel Discussion (Misc queries) 5 November 9th 05 12:20 PM
use a button to open a user form? Hru48 Excel Discussion (Misc queries) 1 September 1st 05 07:41 PM
User name button access. sungen99[_23_] Excel Programming 2 August 4th 05 09:15 PM


All times are GMT +1. The time now is 03:45 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"