Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.goto

Hi

I am trying in VBA to goto a location using the r1c1 reference style

i have tried:

Application.Goto Reference:="R[13]C[x + 1]"

and

Application.Goto Reference:="R13C x + 1"

and

Application.Goto Reference:="R13C (x + 1)"

(x is a variable incrementing on each loop)



Help in achieving the correct solution will be greatly appreciated.

thanks


Loopy;

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Application.goto

For absolute
Application.Goto Reference:=Cells(13, x + 1)

for relative
Application.Goto Reference:=ActiveCell.Offset(13,x+1)

--
Regards,
Tom Ogilvy


"loopy " wrote in message
...
Hi

I am trying in VBA to goto a location using the r1c1 reference style

i have tried:

Application.Goto Reference:="R[13]C[x + 1]"

and

Application.Goto Reference:="R13C x + 1"

and

Application.Goto Reference:="R13C (x + 1)"

(x is a variable incrementing on each loop)



Help in achieving the correct solution will be greatly appreciated.

thanks


Loopy;)


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.goto

thanks very much

It did it!

appreciate

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Application.goto

Loopy,

application.goto requires a range reference or a string in A1 notation.

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


loopy wrote:

Hi

I am trying in VBA to goto a location using the r1c1 reference style

i have tried:

Application.Goto Reference:="R[13]C[x + 1]"
and
Application.Goto Reference:="R13C x + 1"
and
Application.Goto Reference:="R13C (x + 1)"

(x is a variable incrementing on each loop)

Help in achieving the correct solution will be greatly appreciated.

thanks


Loopy;)

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Application.goto

It might work with an A1 style reference (didn't test it), but according to
help:

Reference Optional Variant. The destination. Can be a Range object, a
string that contains a cell reference in R1C1-style notation, or a string
that contains a Visual Basic procedure name. If this argument is omitted,
the destination is the last range you used the Goto method to select.

--

Regards,

Tom Ogilvy



"keepitcool" wrote in message
...
Loopy,

application.goto requires a range reference or a string in A1 notation.

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


loopy wrote:

Hi

I am trying in VBA to goto a location using the r1c1 reference style

i have tried:

Application.Goto Reference:="R[13]C[x + 1]"
and
Application.Goto Reference:="R13C x + 1"
and
Application.Goto Reference:="R13C (x + 1)"

(x is a variable incrementing on each loop)

Help in achieving the correct solution will be greatly appreciated.

thanks


Loopy;)





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.goto

Application.Goto Reference:="R13C" & (x + 1)

that should do it

-Gitcyphe

--
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
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
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
'Application.Goto Reference Tom Ogilvy Excel Programming 0 February 24th 04 06:15 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 06:41 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"