+ Reply to Thread
Results 1 to 19 of 19

Cut/copy Multiple Lines of data with VBA or Formula ??

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Cut/copy Multiple Lines of data with VBA or Formula ??

    Hello Again,

    Trying to pull specific Group of data from one Sheet and paste it onto another sheet Using a specified Group #. . .

    Attached a stripped down Workbook with notes in it to try and show what i want little better.



    Thanks
    Aeneren Arrow
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,919

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    You will have to get rid of all those merged cells. They are unnecessary.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Well unfortunately i cant they are throughout the spread sheets.

    That is a Stripped down copy of the entire thing and to do so would mean rebuilding the entire WB and that is something i would rather not do at this time

    Aeneren

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,683

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    If you wish to have a VBA solution, then you will need to comply with Ben's suggestion. VBA does not play well with merged cells.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    We may, nonetheless, be able to accommodate you!
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  6. #6
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    alansidman, I know it does not play well with merged cells but I do have several areas working with VBA and they are merged.

    xladept if you are able to give some insight into how this can be done I would greatly appreciate it


    Aeneren

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    I'll attempt it tomorrow

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Pl see file with VBA.
    Worksheet_change event is used.
    Attached Files Attached Files

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Hi Aeneren,

    The reverse procedure is unclear to me, in order to update the data sheet from the main which field(s) can we match on??

    Meanwhile here's a routine to bring the data over to the main by group:

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    kvsrinivasamurthy . . . xladept thank you for your time and input . . .

    Sorry i had a family emergency and this is first time ive had chance to check back on this.

    xladept . . kvsrinivasamurthy Is there anyway to do more of a "Cut and paste" in both directions, or use the VBA to pull it then a seperate maybe a Click Button to activate a cut and paste that would Read the Range on the Main page and then "Cut Paste" back to the Data page over using the second set of numbers and the "Match"

    Thanks Again
    Aeneren Arrow

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    I could do it with the entire group - is that what you would want??

  12. #12
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    No what you have to pull from data to the main works great and is what im looking for . . . .

    Now after i update the data on "Main" that was pulled need someway of taking whats has been updated and putting it back on the "Data"

    Aeneren Arrow

  13. #13
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Hi Aeneren,

    In my post #9 I asked you which field(s) we could match upon - is it the third field starting column F along with the Group Number?

  14. #14
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Hi Aeneren,

    If my assumption is correct then here's the couplet:


    Please Login or Register  to view this content.
    Last edited by xladept; 09-03-2014 at 07:00 PM.

  15. #15
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Ok i will try these out when i get home and on a system and post on them tomorrow

    Aeneren Arrow

  16. #16
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    stripped chartA.xlsmXladept sorry had some problems getting your code to work . . . had a issue on my main Book that is now resolved. . .

    1. Your Code works it pulls data from the one sheets onto the Main sheet just fine. .
    2. Your Code to send the Data back to the original code does work but it is sending not only the data that was pulled but everything on the said Lines A:ZZZZZZ or how ever far there is data ive placed the code in a test book so that you can see what is happening. It should only be sending the Data that was pulled and updated back.

  17. #17
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    I had to change a few values:

    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    Thank You Xladept it works Great and I didn't have to unmerge a single thing

    Thanks for your work on this for me
    I would give Rep again but it wont allow it

    Aeneren Arrow

  19. #19
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Cut/copy Multiple Lines of data with VBA or Formula ??

    You're welcome and thanks for trying to rep me again! Excellent!

+ 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. Need formula that calulates best options from multiple lines of data.
    By Hobo.Shotgun in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 06:47 AM
  2. [SOLVED] Move Formula Multiple Lines With Copy, Paste
    By danderson2692 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 09:47 AM
  3. Copy Multiple lines of data by Part # to New sheet
    By dzap79 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-28-2009, 03:33 PM
  4. copy data across worksheets and add multiple lines
    By madwoman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2006, 08:35 AM
  5. [SOLVED] Copy multiple wrkbooks, multiple lines of each
    By sharpie23@cox.net in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-26-2005, 08:05 PM

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