Offset activecell in linkedcell

bak

New Member
Joined
Mar 3, 2011
Messages
26
What is wrong in this macro?

With selection
.linkedcell = activecell.offset(0,3)
End with
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Can you post your whole code? Or at least some lines immediately before below?
 
Upvote 0
ActiveSheet.CheckBoxes.Add(192, 18, 47.25, 17.25).Select( this must be activecell)
With Selection
.Value = xlOff
.LinkedCell = activecell.offset(3,0)
.Display3DShading = False
End Sub
 
Upvote 0
I've just run your code and this is what I see happening.

It adds a checkbox around cell E3 and then selects the checkbox; because the checkbox is selected, no cells are.

You are then trying to link a cell (offset) to an activecell, but because you selected the checkbox, no cell is active so nothing can be linked

I think you need to explain in some more detail what you want or post an example of your sheet
 
Upvote 0
I want a checkbox in A2 linked to D2. When the activecell is A3 then the checkbox must be placed in A3 with the linkedcell D3
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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