View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
locutus243 locutus243 is offline
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