ThrottleWorks
Excel Ninja
Hi,
I have a (silly) doubt.
I am trying to define a range. My problem is I need to select the particular sheet.
If the sheet is not selected then macro gives bug.
For example, the active sheet is "bbb" and I want to define range from sheet "aaa".
I need to select the "aaa" sheet first then define the code.
Worksheets("aaa").Select
Set Rng1 = Worksheets("aaa").Range(Cells(7, 3), Cells(Lr2, 3))
I wanted to know, if this is the correct way to do it.
Is there more efficient way to define range.
Can anyone please help me in this.
I have a (silly) doubt.
I am trying to define a range. My problem is I need to select the particular sheet.
If the sheet is not selected then macro gives bug.
For example, the active sheet is "bbb" and I want to define range from sheet "aaa".
I need to select the "aaa" sheet first then define the code.
Worksheets("aaa").Select
Set Rng1 = Worksheets("aaa").Range(Cells(7, 3), Cells(Lr2, 3))
I wanted to know, if this is the correct way to do it.
Is there more efficient way to define range.
Can anyone please help me in this.