ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I need a macro that will insert names in an excel worksheet, the . (https://www.excelbanter.com/excel-programming/316999-i-need-macro-will-insert-names-excel-worksheet.html)

Ocicat

I need a macro that will insert names in an excel worksheet, the .
 
I need a macro that will insert names in an excel worksheet. The ranges
aren't always the same size. However they always start in column A and end
in column U.

Don Guillett[_4_]

I need a macro that will insert names in an excel worksheet, the .
 
Amazing what you find when you record a macro. Just modify to suit.

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 11/16/2004 by Don Guillett
'

'
Range("C5:F11").Select
ActiveWorkbook.Names.Add Name:="myname",
RefersToR1C1:="=Sheet1!R5C3:R11C6"
End Sub


--
Don Guillett
SalesAid Software

"Ocicat" wrote in message
...
I need a macro that will insert names in an excel worksheet. The ranges
aren't always the same size. However they always start in column A and

end
in column U.





All times are GMT +1. The time now is 05:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com