ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can you dimension Range more than 1 way (https://www.excelbanter.com/excel-programming/422748-can-you-dimension-range-more-than-1-way.html)

Patrick C. Simonds

Can you dimension Range more than 1 way
 
In my routine I have the following Dim statement:

Dim mg As Range
Set mg = Range("Employees")

but I need to add the following in the same routine::

Dim rng
Set rng = Cells(ActiveCell.Row, 1)

Bob Phillips[_3_]

Can you dimension Range more than 1 way
 
So do it, no problem with that.

What is the question?

--
__________________________________
HTH

Bob

"Patrick C. Simonds" wrote in message
...
In my routine I have the following Dim statement:

Dim mg As Range
Set mg = Range("Employees")

but I need to add the following in the same routine::

Dim rng
Set rng = Cells(ActiveCell.Row, 1)





All times are GMT +1. The time now is 09:23 PM.

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