Autofill error???

luvbite38

Active Member
Joined
Jun 25, 2008
Messages
368
Hi guys,

I am trying to autofill using the following code but no luck, can someone kindly help me correct the following code,


Code:
Range("B4:T4").AutoFill Destination:=Range("B4:T" & Range("T" & Rows.Count).End(xlUp).Row)

All I want to select the range A4:T4 and autofill down.

Thanks in advance

:)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
In column A I have values and below B4:T4 blank cells.

I somehow want macro to autofill the B4:T4 to autofill to the same no. of rows as vals in Column A

and if there is only one value in Col A i.e. A4 don't autofill..

Thanks Andrew
 
Upvote 0
That's:

Rich (BB code):
Range("B4:T4").AutoFill Destination:=Range("B4:T" & Range("A" & Rows.Count).End(xlUp).Row)
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,103
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top