How to create a macro of autofilling column D depending of column A (until blank cell is found)

marikam

New Member
Joined
Jun 30, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Dear all,

I am trying to get the macro of below table:

Column AColumn BCoulmn CColumn D
A1ZZCONCATENATE(C1;" ";B1)
B2YY
C3XX

So the purpose of the macro would be the automated fillng of the function CONCATENATE within column D until column A has data.

Thank you all in advance!

Marika
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi & welcome to MrExcel.
How about
VBA Code:
Sub marikam()
   Range("D1:D" & Range("A" & Rows.Count).End(xlUp).Row).Formula = "=CONCATENATE(C1,"" "",B1)"
End Sub
 
Upvote 0
Hi & welcome to MrExcel.
How about
VBA Code:
Sub marikam()
   Range("D1:D" & Range("A" & Rows.Count).End(xlUp).Row).Formula = "=CONCATENATE(C1,"" "",B1)"
End Sub
Thank you o much!! it works perfectly!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,539
Messages
6,125,403
Members
449,222
Latest member
taner zz

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