Article ID: 213477 - Last Review: January 10, 2007 - Revision: 4.2 VBA macro to concatenate columns of data in ExcelThis article was previously published under Q213477 On This PageSUMMARY
In Microsoft Excel, you can use a macro to concatenate the data in two
adjacent columns and to display the result in the column to the right of the
columns that contain your data. This article contains a sample Microsoft
Visual Basic for Applications (VBA) macro (Sub procedure) to accomplish this.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Sample Visual Basic for Applications (VBA) macroHow to use the macro in Microsoft Office Excel 2007
How to use the macro in Microsoft Office Excel 2003 and in earlier versions of Excel
REFERENCES
For more information about Visual Basic for Applications, click the following article number to view the article in the Microsoft Knowledge Base:
226118
(http://support.microsoft.com/kb/226118/
)
List of resources that are available to help you learn Visual Basic for Applications programming
| Article Translations
|
Back to the top
