Hello,
This is a very basic question but I don't know what the answer is!
I have a the current code:
The issue I have is that I want to be able to add new columns into my spreadsheet without fear that I'm going to break the code.
In cell B1 I have named cell (the 'named range') - "Client_name_column" however this code won't run:
Is there a way around this?
thanks
This is a very basic question but I don't know what the answer is!
I have a the current code:
VBA Code:
With ActiveCell
ClientName = ActiveSheet.Cells(.Row, 2)
Client_name_1.Caption = ClientName
End with
The issue I have is that I want to be able to add new columns into my spreadsheet without fear that I'm going to break the code.
In cell B1 I have named cell (the 'named range') - "Client_name_column" however this code won't run:
VBA Code:
With ActiveCell
ClientName = ActiveSheet.Cells(.Row, "Client_name_column")
Client_name_1.Caption = ClientName
End with
Is there a way around this?
thanks