+ Reply to Thread
Results 1 to 2 of 2

Append Data into Cell

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Append Data into Cell

    I am running ADO query in Excel to import some data and combine a few fields. I am iterating through each record in the table and then putting the outcome in a cell in excel. The problem I have is that I want ALL of the data from the table to be in cell A1, and each entry is overwriting the previous, how can I set it to append the data not overwrite?

  2. #2
    Registered User
    Join Date
    03-07-2012
    Location
    Leiria, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Append Data into Cell

    I think if you create a variable (ex: data1) of type string, you could make something like: data1= data1 & ADO Query data field, and go on until last field with a do while loop. Finaly range("cell oyou want").value=data1.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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