Hello
Col B has series of merged cells. I would like assign macro to a button to automatically create name range to these merged cells if the merge cell has any text in it (if any name exists there go to next cell).
My recorded macro so far:
I would like search entire Col B starting at B11for merged cells with text. In addition the # of rows in merged cells will very. Range name will be sequential Func1, Func2 , etc……
Can you please help me with this code.
Thank you
John
Col B has series of merged cells. I would like assign macro to a button to automatically create name range to these merged cells if the merge cell has any text in it (if any name exists there go to next cell).
My recorded macro so far:
Code:
Sub Make_Name()
Range("B11:B13").Select
ActiveWorkbook.Names.Add Name:="func1", RefersToR1C1:="=Notes!R11C2"
ActiveWorkbook.Names.Add Name:="func2", RefersToR1C1:="=Notes!R14C2"
ActiveWorkbook.Names.Add Name:="func3", RefersToR1C1:="=Notes!R19C2"
Range("A11").Select
End Sub
I would like search entire Col B starting at B11for merged cells with text. In addition the # of rows in merged cells will very. Range name will be sequential Func1, Func2 , etc……
Can you please help me with this code.
Thank you
John