G’day all, I’m back after being unemployed for 4 months. God it feels good to be working again.
Problem, How to define a Range name using VBA, which changes shape each time data is added. I have no problems defining the actual range using xldown etc, but have problem with the following, which was created using the Record Macro function.
ActiveWorkbook.Names.Add name:=”dbase”, RefersToR1C1:= _
“=’REW EFF (2)’!R3C1:R24C13”
How can I set a variable which contains the range, to replace “RefersToR1C1:= “=’REW EFF (2)’!R3C1:R24C13”
I have played around with ‘With Selection’ and setting a variable to the range, but I get a Range Name with = TRUE, or a syntax error. VBA HELP was not helpful, guess I did not know what to look up.
Hope someone can help