ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Refrencing Diffrent Tab. (https://www.excelbanter.com/excel-programming/380862-refrencing-diffrent-tab.html)

Ardy

Refrencing Diffrent Tab.
 
Hello All:
I have this code:

With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("A3:A44").AutoFill Destination:=.Range("A3:A" & LastRow), _
Type:=xlFillDefault
End With

This is for the same tab as the information, how would I modify this to
different tab. In
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row.

What I want to do is refrence my last row in a different tab.

Regards, Ardy


Gary Keramidas

Refrencing Diffrent Tab.
 
don't see how this will work
.Range("A3:A44").AutoFill Destination:=.Range("A3:A" & LastRow), _
Type:=xlFillDefault

maybe
.Range("A3:A3").AutoFill Destination:=.Range("A3:A" & LastRow), _
Type:=xlFillDefault

but i'm not sure what you're trying to copy where

--


Gary


"Ardy" wrote in message
oups.com...
Hello All:
I have this code:

With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
.Range("A3:A44").AutoFill Destination:=.Range("A3:A" & LastRow), _
Type:=xlFillDefault
End With

This is for the same tab as the information, how would I modify this to
different tab. In
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row.

What I want to do is refrence my last row in a different tab.

Regards, Ardy





All times are GMT +1. The time now is 10:26 PM.

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