Dynamic cell references

glynn1969

Board Regular
Joined
Nov 24, 2018
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hello I am looking for some vba please. I am looking for some vba please.

In my workbook I have 2 tabs CUURENT and REFRESHED, I am liking some vba that will recognise what cell I am active in on the CURRENT sheet eg CURRENT cell B7 and the insert a reference in this cell to refer to the same cell of my REFRESHED tab.

So in CURRENT cell B7 I would get =REFRESHED!B7.



Extra cheeky question....bonus point

If possible could the vba look down column C of CURRENT sheet and where it finds a cell value of 1, it would insert the dynamic formula in B.

So if CURRENT C7 had a value of 1 then in CURRENT B7 the formula =REFRESHED!B7 would be entered..

Any help much appreciated
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I'll try the first question for now, but you might need to specify what event will make this happen if you can't take it from here. Could be just selecting a cell, could be a cell double or right click, could be a command button...

If Sheets("CURRENT").Range("C7") = "1" Then Sheets("CURRENT").Range("B7").Formula = "=REFRESHED!B7"
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,033
Members
449,092
Latest member
ikke

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