ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Named Range (https://www.excelbanter.com/excel-programming/298677-named-range.html)

Joey[_3_]

Named Range
 
Hi

How do I set a named range in Excel from access?
When I used the auto macro, it gave me two entires of the
following line:

ActiveWorkbook.Names.Add Name:="Data",
RefersToR1C1:="=Sheet1!R1C1:R6C23"

but when I run the code, it gives me an error at that line.

Please help
TIA
Joey


All times are GMT +1. The time now is 11:44 AM.

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