AutoFill Month Error

alsharif

New Member
Joined
Mar 14, 2021
Messages
14
Office Version
  1. 2019
Platform
  1. Windows
1615825824485.png

In a Worksheet I have to columns A (Data) and B (Dates) and I need to 'AutoFill the date in Column B starting from last month in column B till the end of the last cell on Column A using the Auto fill method only but it is giving me this error .

please help me with code correction

thank you
 

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.
The destination range should be
VBA Code:
Range("B" & lastrow_b & ":B" & lastrow_a)
 
Upvote 0
Solution
The destination range should be
VBA Code:
Range("B" & lastrow_b & ":B" & lastrow_a)

Wooow, It is working like Magic? ,

You are great?

thank you very much for your fast reply and your effort.
.?
 

Attachments

  • Well Done.PNG
    Well Done.PNG
    37 KB · Views: 6
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,560
Messages
6,120,217
Members
448,951
Latest member
jennlynn

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