Can you dimension Range more than 1 way

  • Thread starter Thread starter Patrick C. Simonds
  • Start date Start date
P

Patrick C. Simonds

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)
 
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)

Just leave out the 2nd Dim statement
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top