trying to make Application.Goto Reference:="R97411C9" dynamic?

HghJrs

Board Regular
Joined
Jul 1, 2014
Messages
60
Hi,

as the title really...

I recored a macro that utilises the "Go to" function but the reference for the "go to" was copied from a cell (that has formula to set to go to cell) but although when recording the macro I pasted in this changable cell result the recording is fixed to the original reference...

so how do I make the "R97411C9" part of this line > Application.Goto Reference:="R97411C9" be copied from a cell rather than fixed as it is at the moment...

thanks

James
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Like this. Cell A1 must contain RC values or it will fail
Code:
Application.Goto Reference:=Range("A1").Value
 
Upvote 0
Thanks Steve,

this has been hurting my happiness all day!

So Im creating a reference in a cell from another sheet, effectively its counting the number of rows of data in an export and returing the row number of the last line of data... EG 10000

Im then using concatenate to create the reference I10000 EG =concatenate("I","last row number")

Im then using this ref for the Application.Goto Reference... so my next question is...

The column is always going to be I but the row number will change...

so how do I create the RC reference from I10000???

thanks for you hwlp on this one!!

thanks

James
 
Upvote 0
No need:
Code:
Application.Goto Reference:=Range(Range("A1").Value)
 
Upvote 0
So you don't want to go to the value of a cell? You just want to go to the last cell?
 
Upvote 0
Hi Steve,

its alright, I managed to suss it out! but wouldnt of been able to do it without our input...

the sheet Im putting together is hard to explain over text like this...

But thanks a lot for your help! ive fixed my issue!

thanks

James
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,576
Members
448,972
Latest member
Shantanu2024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top