+ Reply to Thread
Results 1 to 4 of 4

Data copy and paste to multiple sheets by renaming the names

  1. #1
    Registered User
    Join Date
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Data copy and paste to multiple sheets by renaming the names

    Hello,

    I have a spreadsheet with few lines of data and I need to copy & paste the data based on the column A to multiple sheets based on the invoice numbers.
    Based on the invoice numbers, new sheet has to be inserted and has to be renamed with the invoice number and the data matches to the invoice number has to be copied and paste to the sheets.

    I did try this with Auto filter and is working fine except renaming the file names with invoice number and it has to automatically stop once the unique number reaches to the last in the filter.

    enslosed the sample file and tried with EXcel record macros.split.xls

    Regards,
    Ignesh.

  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: Data copy and paste to multiple sheets by renaming the names

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    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
    04-19-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Data copy and paste to multiple sheets by renaming the names

    Hi,

    The code really helps if the data is only in two columns but the real data what I have fluctuates in many columns and hence the copy & paste has to happen for entire rows and not only for two columns which had in SPLIT sheet.

    I tried modifying it, but was not successful else the code is perfect and working correctly as desired.

    can you tweak the code so that the copy & paste happens to entire rows.

    Regards,
    Ignesh.

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

    Re: Data copy and paste to multiple sheets by renaming the names

    Replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.

+ 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