CONCATENATE till Blank Cell - Kinda need help ASAP :(

Ildestino

New Member
Joined
Jun 23, 2014
Messages
15
Dear Excel Genius,

First, I would like to apologize for this urgent question. I will have a meeting in few hours and I would need this part of VBA for my Report.

This question probably has been asked... and asked... but... im kinda stuck somehow...

Code:
Dim i As Long

i = Range("F" & Rows.Count).End(xlUp).Row


Range("M2").Formula = "=$I2$&$F2$&$H2$"
Range("M2:M" & i).FillDown
 Calculate
        Columns("M:M").Select
    Selection.Copy
    Range("M1").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False

This is the code I am using. I do not understand, why it always fails. It should concatenate values till it finds blank. columns "I", "F" and "H" are all constant and have value.

Could you please have a look at my code and tell/show me what I could improve to make this coding work?

Thank you very much in advance.

Kind regards

Ildestino
 

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