andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I feel like this is a really dumb thing to ask, but I am having some trouble putting a cell reference in my menu caption in VBA:
I would like to have:
Is this possible? The cell reference keeps appearing in my menu instead of the value of the cell.
I feel like this is a really dumb thing to ask, but I am having some trouble putting a cell reference in my menu caption in VBA:
Code:
With ContextMenu.Controls.Add(Type:=msoControlButton, before:=7) .OnAction = "'" & ThisWorkbook.Name & "'!" & "RTO_MATERNITY"
.FaceId = 484
.Caption = "Custom Request"
End With
I would like to have:
Code:
Sheets("Print").Range("Y3") & " " & Sheets("Print").Range("Y4")
Is this possible? The cell reference keeps appearing in my menu instead of the value of the cell.