AutoFill Month Error

alsharif

New Member
Joined
Mar 14, 2021
Messages
6
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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
The destination range should be
VBA Code:
Range("B" & lastrow_b & ":B" & lastrow_a)
 
Solution

alsharif

New Member
Joined
Mar 14, 2021
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
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: 1

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,468
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,388
Messages
5,636,033
Members
416,892
Latest member
Bensch

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
Top