Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
blkane
 
Posts: n/a
Default Goto a dynamic cell address within a macro

My workbook is formula driven and the tables will dynamically expand or
contract with the size of the data. I have a need to move to the next
available row before starting the next subroutine. I have created a formula
that computes the correct cell address but I don't know how to structure a
goto command within the macro to use it.

Can you help?
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Range(cell_address).Activate

Or, if the cell could be on a different sheet:

Application.GoTo Range(cell_address)


In article ,
blkane wrote:

My workbook is formula driven and the tables will dynamically expand or
contract with the size of the data. I have a need to move to the next
available row before starting the next subroutine. I have created a formula
that computes the correct cell address but I don't know how to structure a
goto command within the macro to use it.

  #3   Report Post  
blkane
 
Posts: n/a
Default

JE
Thanks,

I used Application.GoTo Reference=(cell_address) and successfully navigated
to a cell address.

My question is can the cell address be retrieved from the value of a formula?

The cell address that I need to navigate to will change each time the
workbook is used. I can create a formula to determine what the cell address
will be. But, I need the macro to take the value of this formula to use in
the goto function.

Is this possible?



"JE McGimpsey" wrote:

One way:

Range(cell_address).Activate

Or, if the cell could be on a different sheet:

Application.GoTo Range(cell_address)


In article ,
blkane wrote:

My workbook is formula driven and the tables will dynamically expand or
contract with the size of the data. I have a need to move to the next
available row before starting the next subroutine. I have created a formula
that computes the correct cell address but I don't know how to structure a
goto command within the macro to use it.


  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

As long as your formula returns a string that looks like an address, then it
should work.

application.goto reference:=range("A" & 5-4+17-3)

Went to A15 of the activesheet.



blkane wrote:

JE
Thanks,

I used Application.GoTo Reference=(cell_address) and successfully navigated
to a cell address.

My question is can the cell address be retrieved from the value of a formula?

The cell address that I need to navigate to will change each time the
workbook is used. I can create a formula to determine what the cell address
will be. But, I need the macro to take the value of this formula to use in
the goto function.

Is this possible?

"JE McGimpsey" wrote:

One way:

Range(cell_address).Activate

Or, if the cell could be on a different sheet:

Application.GoTo Range(cell_address)


In article ,
blkane wrote:

My workbook is formula driven and the tables will dynamically expand or
contract with the size of the data. I have a need to move to the next
available row before starting the next subroutine. I have created a formula
that computes the correct cell address but I don't know how to structure a
goto command within the macro to use it.



--

Dave Peterson
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
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
?? Extra blank lines in 'address' cell after exporting to Excel Hadyn Pkok Excel Discussion (Misc queries) 4 April 15th 05 11:34 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Help Pls re macro cell address Hugh Jago Excel Discussion (Misc queries) 2 January 5th 05 09:01 PM
How do I dynamically retrieve the cell address of the last cell t. Nancy Excel Discussion (Misc queries) 1 December 20th 04 02:52 PM


All times are GMT +1. The time now is 08:49 PM.

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"