Autofill

Kamranas

Banned User
Joined
Feb 25, 2023
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
I need an excel VBA code for just 1 row which autofill until the last row .and condition is this it automatically detects the last row.
i hope you will all help me
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What do you want to autofill with..formula or text ?
 
Upvote 0
I need an excel VBA code That auto-fills it down the row until the last row and it detects the last row itself.
i hope you will all help me
 

Attachments

  • excel.PNG
    excel.PNG
    30.3 KB · Views: 5
Upvote 0
Whya VBA when all you have to do is double click on the green square in the bottom rh of cell N2
 
Upvote 0
i just want to auto this text down
i just want to auto fill this text down untill last row ,condition is this it automatically detects last row
 

Attachments

  • excel.PNG
    excel.PNG
    30.3 KB · Views: 3
Upvote 0
Whya VBA when all you have to do is double click on the green square in the bottom rh of cell N2
yes brother I can do this,but I need a vba code which do this because i do this daily basics ,i want to save my time
 
Upvote 0
Don't see the point really, but.....
VBA Code:
Range("N2").Copy Range("N3:N" & Cells(Rows.Count, "M").End(xlUp).Row)
 
Upvote 0
Solution
Depending on what your last row # is, it may be faster to bypass the copy command and just use '=':
VBA Code:
    Range("N2:N" & Range("M" & Rows.Count).End(xlUp).Row).value = Range("N2").value
 
Upvote 1

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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