+ Reply to Thread
Results 1 to 2 of 2

Concatenate using Excel VBA with variable column numbers

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    36

    Concatenate using Excel VBA with variable column numbers

    Hi All,

    I am working on a reconciliation wherein I need to pass 2 sets of data through several sets of parameters in order to identify the possible match. In order to do that for each row I need to concatenate 8-11 columns which should be variable in nature based on the data provided in the sheet (Concatenate).

    I am using the below macro to populate the concatenated data in Sheets (Data), however I am getting an error "Application-defined or Object-defined error".

    Attaching the excel spreadsheet with the data and codes. Please help me in sorting this out.

    Regards,
    Raghu
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Concatenate using Excel VBA with variable column numbers

    Hi Raghukumarn,

    You needed to "cap the end" of your formula with a ")".

    Put this just after the Loop command:

    Please Login or Register  to view this content.
    Hope it works for you.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-16-2016, 02:07 AM
  2. Replies: 2
    Last Post: 01-16-2016, 01:41 AM
  3. [SOLVED] Concatenate variable number of lines within a column
    By ferndiazabarca in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-03-2015, 02:29 AM
  4. [SOLVED] Concatenate Just numbers, excel Macros
    By NewGuy OnBlock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2015, 04:39 PM
  5. Replies: 3
    Last Post: 01-31-2014, 03:21 AM
  6. Merging numbers in a column separated by coma using CONCATENATE
    By euphoric.jag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 09:12 AM
  7. variable column numbers for autofill
    By mattybinv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2005, 09:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1