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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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
@Kamranas, On the right side of each post in a thread that you have started will be a heart, number, and a checkmark. click the checkmark on the post that you feel best answered your question.
 
Upvote 1
it is working
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 1
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

Forum statistics

Threads
1,215,374
Messages
6,124,573
Members
449,173
Latest member
Kon123

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