+ Reply to Thread
Results 1 to 4 of 4

Need help making a macro to copy range of values based on cell values.

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need help making a macro to copy range of values based on cell values.

    Hey,

    I'm not the greatest with vba in excel so I could use some help because I can't figure out the best approach to accomplish this task

    So I have a file that was imported from a RTF file. I need to go through the first column of the data and separate it into two columns. Right now the data looks like this:

    CustomerID

    123456

    Inv No
    123485
    1284558
    1385475
    2437585

    CustomerID

    85676849

    and so on for a couple thousand lines.


    I need to create a macro that copies the Customer Id into one field and then their invoice numbers into the other field. Any help or direction would be greatly appreciated.

    Thanks,
    Zach

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Need help making a macro to copy range of values based on cell values.

    Hi Zach

    could u plz provide actual workbook file.

  3. #3
    Registered User
    Join Date
    06-23-2013
    Location
    Dhaka
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Need help making a macro to copy range of values based on cell values.

    Nice post, very helpul

  4. #4
    Registered User
    Join Date
    06-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need help making a macro to copy range of values based on cell values.

    Naveed,

    Thanks for the reply. I have attached the first column of the workbook file. It is in the exact format of the original document. I need to separate the data so that Customer Id is in one Column and then the Inv No is in the next column.


    Thanks
    Attached Files Attached Files

+ 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