Sorry guys, am new to programming in that i only rarely use VBA. Whenever i come to use VBA, i forget even the basics, cos i didn't use vba for a long time.
When a user enters an excel range (Example "Sheet1!C5:G13" ) in a specified excel cell ,the program should re-name this range as "RangeA"
I tried recording a macro, but it didn't help
Range("C5:G13").Select
ActiveWorkbook.Names.Add Name:="RangeA", RefersToR1C1:="=Sheet1!R5C3:R13C7"
---------------------------------
"Good things are the enemies of the best things"
---------------------------------
When a user enters an excel range (Example "Sheet1!C5:G13" ) in a specified excel cell ,the program should re-name this range as "RangeA"
I tried recording a macro, but it didn't help
Range("C5:G13").Select
ActiveWorkbook.Names.Add Name:="RangeA", RefersToR1C1:="=Sheet1!R5C3:R13C7"
---------------------------------
"Good things are the enemies of the best things"
---------------------------------