Going to a cell reference

Duckmorph

New Member
Joined
Aug 2, 2013
Messages
25
Im trying to workout the cell refrence and then go to a cell a couple over and enter data

So far i have

x = Sheet4.Range("A1").formula

'which returns x as =Markets!F155

Now i have the problem, i want to use the row number (155) and go to column "Q" in "Markets" and enter some data but i cant seem to get there. I have been trying to get a split to work but with no success.

Any ideas?
 
Hello

Can you please upload your file somewhere? Then helpers can have a look at it, as it seems that outputting a line of code to the Immediate Window seems too difficult.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hey

Sorry for your troubles, i cant seem to get debug.print to do anything. Ive since change the coding to.....

Dim Prow, PResult As Integer

Prow = CInt(MatchBox.Text) + 4
PResult = Mid(Sheet4.Cells(Prow, 9).Formula, 11, 6)

Sheet24.Cells(PResult,17) = "Something"

And i can get there that way instead, not at subtle as your original coding but its working.

Cheers
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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