ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Naming a range (https://www.excelbanter.com/excel-programming/285458-naming-range.html)

cornishbloke[_5_]

Naming a range
 
I am trying to write the VB code that will name a range (on a shee
called 'Office Staff') according to the value in cell E4 (on a shee
called 'Main Menu')

all I have of that row of code so far is...

Sheets("Office Staff").Range("B2:M15").Name =

I have already defined the E4 cell for other functions as:

Dim Oname As String
Oname = ActiveSheet.Range("E4").Value

Can I use this and refer to Oname value somehow??

--
Message posted from http://www.ExcelForum.com


Don Guillett[_4_]

Naming a range
 
answered elsewhere

--
Don Guillett
SalesAid Software

"cornishbloke" wrote in message
...
I am trying to write the VB code that will name a range (on a sheet
called 'Office Staff') according to the value in cell E4 (on a sheet
called 'Main Menu')

all I have of that row of code so far is...

Sheets("Office Staff").Range("B2:M15").Name =

I have already defined the E4 cell for other functions as:

Dim Oname As String
Oname = ActiveSheet.Range("E4").Value

Can I use this and refer to Oname value somehow???


---
Message posted from
http://www.ExcelForum.com/





All times are GMT +1. The time now is 07:15 AM.

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