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: 27,285
Default 'Application.Goto Reference

Private Sub CommandButton1_Click()
On Error Resume Next
set rng = Worksheets("Sheet1").Range(Textbox1.Text)
On error goto 0
if rng is nothing then
' go to range A3
set rng = Worksheets("Sheet1").Range("A3")
' or go to the address contained in A3 of the current sheet
' set rng = Worksheets("Sheet1").Range(Range("A3").Value)
End if
Application.Goto Reference:=rng
End Sub

--
Regards,
Tom Ogilvy


"Jim Oswell" wrote in message
...
I am having trouble with

Private Sub CommandButton1_Click()
Application.Goto Reference:=Worksheets("Sheet1").Range = Textbox1.text or

$a$3.value
End Sub

where textbox1 or $A$3 is the intended goto cell name

Any ideas





 
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
application.goto Tami Excel Worksheet Functions 4 December 19th 09 08:33 PM
Application.Goto Reference gets error 1004 cellist Excel Discussion (Misc queries) 4 December 25th 08 09:32 PM
If.....Then GoTo....... Alec H Excel Discussion (Misc queries) 4 February 22nd 06 02:42 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM


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