Excel VBA - Concatenate Module for Multiple Lines

Reqless

New Member
Joined
Mar 11, 2019
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi all. I am new to excel VBA and I am trying to create a module that will concatenate multiple lines.

Here is an example of data from the excel workbook:

MEEhzep.jpg


Once the macro is executed, I would like the result to look like this:

2YdzKkl.jpg




Any information would greatly appreciated. Thank you in advanced to anyone willing to contribute.
 
you can "call" other macros from one main macro.
Say you have the MM1 macro and want to run a couple of others....MM2 and MM3
you could.....

Code:
Sub MM1()
    With Range("B2:B200")
        .Value = Evaluate(.Address & "& "" "" & " & .Offset(, 1).Address & " & "" "" &  " & .Offset(, 2).Address)
        .Offset(, 1).Clear
        .Offset(, 2).Clear
    End With
Range("C:D").EntireColumn.Delete
[color=red]Call MM2
Call MM3[/color]
End Sub
So once MM1 had done it's work..macro MM2 would run followed by macro MM3, without needing your input.
Is that what you wanted ??
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Precisely.

These macros are so interesting. Never knew about any of this stuff until recently. Thanks again for all the help and the quick responses!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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