+ Reply to Thread
Results 1 to 7 of 7

Error Generation during copypaste macro run

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    47

    Error Generation during copypaste macro run

    Hi Guys

    Plz Help me out with this situation I’m working on a project in which I had to copy data from child woekbooks (*.xls) and paste it to the master workbook with same page to page every time when a macro is executed i had done the copy and paste part

    But I'm Facing the problem in which i had to deal with

    Validations as on both master and child sheet validation (column based combo box is activated )
    one is worktype
    2ns is time type

    i jst had to copy data to the master macro works perfectly fine but the problem is that a msg box appears which signifies that i had to change the name (version ) for both types when i click yes 2 times it pastes the data

    I'm attaching my macro as well as pic of that msg box with this attachment

    Please Login or Register  to view this content.
    Cud u plz help me with this Problem
    Ur Help Would be Gr8ly appreciated

    I'm Attaching The Screen shot of that Msgbox
    And both Dummy copies of Master And child file


    i know i can use

    Please Login or Register  to view this content.


    to remove that but i do need more sound solution
    Plz Just Help Me With any property of Paste Special WHich copies the data without this typeof validation check

    and copies the data n move to next sheet
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ravinder_tigh; 05-26-2009 at 07:21 AM.
    Thanks & Regards
    Ravinder S
    (Ravinder_tigh)

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161

    Re: Error Generation during copypaste macro run

    Using "Application.DisplayAlerts = False" at the beginning would be the way to go, it's as robust as anything, you may want to do a couple of other things:
    Please Login or Register  to view this content.
    use these at the beginning and again at the end but change them all to true!

    P.S i haven't had time to look at your attachment or check the code properly
    Not all forums are the same - seek and you shall find

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error Generation during copypaste macro run

    ravinder_tigh, please change the QUOTE tags in your post to CODE tags.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    04-22-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Error Generation during copypaste macro run

    Thanka alot Simon Lloyd its been a gr8 help but i do need more specific solution the thing u mentioned i had applied it earlier
    and thanks SHG I'll remember to post correctly cud u help me with da solutions

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error Generation during copypaste macro run

    Try this:
    Please Login or Register  to view this content.
    It incorporates Simon's suggestion.
    Last edited by shg; 05-25-2009 at 04:14 PM.

  6. #6
    Registered User
    Join Date
    04-22-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Error Generation during copypaste macro run

    thanks shg it works wonders

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error Generation during copypaste macro run

    You're welcome. Would you please mark the thread as Solved?

+ 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