+ Reply to Thread
Results 1 to 4 of 4

Looping through worksheet and append data from one column to another

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    Leighton Buzzard, Beds
    MS-Off Ver
    2016
    Posts
    4

    Looping through worksheet and append data from one column to another

    Hi,

    I have a worksheet which I need to beable to loop through the work sheet and append the product name to the end of the path.

    for example here is a simple worksheet

    Product Name Path
    dsc_0004.JPG folder1/folder2/folder3/
    dsc_0005.JPG folder1/folder2/folder3
    dsc_0006.JPG folder1/folder2/folder3/
    dsc_0007.JPG folder1/folder2/folder3/
    dsc_0008.JPG folder1/folder2/folder3/
    dsc_0009.JPG folder1/folder2/folder3/

    Any help would be great.

    Thanks
    Darren

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Looping through worksheet and append data from one column to another

    If your data starts in row2, try this in C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also you will need to change the / to \ in the path column.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-21-2012
    Location
    Leighton Buzzard, Beds
    MS-Off Ver
    2016
    Posts
    4

    Re: Looping through worksheet and append data from one column to another

    Thanks Arlette,

    Is there no way to achieve this without using formulas? The spreadsheet is going to be used as a CSV to import in to my website. The script expects the exact number columns and cannot skip columns.

    Thanks
    Darren

    P.S The / is correct as this is going to be imported to my website

  4. #4
    Forum Contributor
    Join Date
    07-04-2012
    Location
    Al Khor, Qatar
    MS-Off Ver
    Excel 2013
    Posts
    101

    Re: Looping through worksheet and append data from one column to another

    @ts kindly check this macro please put a command button and assign this macro to that command button. if this helps please inform me thank you.
    Please Login or Register  to view this content.
    here's another one.

    Please Login or Register  to view this content.
    Last edited by tangangtanga; 07-21-2012 at 08:47 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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