Autofill Column

Crocdundee

Board Regular
Joined
May 10, 2010
Messages
174
Office Version
  1. 2013
Platform
  1. Windows
I would like to autofill a column with the active cell selected with offset to the left column.
The active cell may not always be B2, could be B2 or whatever, but the offset range will always be in the left column
Any help on this will be appreciated.
-----------------------------------------
A B
1 Canterbury 23/02/11
2 Canterbury
3 Canterbury
4 Canterbury
5 Canterbury
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try

Code:
Sub FillDown()
Dim LR As Long
LR = ActiveCell.Offset(, -1).End(xlDown).Row
ActiveCell.AutoFill Destination:=ActiveCell.Resize(LR - ActiveCell.Row + 1)
End Sub
 
Upvote 0
Thank you for the help.
I am always amazed at the extent that help is extended
I have tried the code and it works, however I did not make myself clear enough.

I really need to copy instead of auto populating
so , in B2: B whatever
data should read
23/02/11
23/02/11

etc etc

Thanks
Graham
 
Upvote 0
Try

Code:
Sub FillDown()
Dim LR As Long
LR = ActiveCell.Offset(, -1).End(xlDown).Row
ActiveCell.AutoFill Destination:=ActiveCell.Resize(LR - ActiveCell.Row + 1), Type:=xlFillCopy
End Sub
 
Upvote 0
I found the answer by replacing autofill with copy.
Again Thanks for your help

Graham
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

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