+ Reply to Thread
Results 1 to 4 of 4

VBA fails every other time

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    UK
    MS-Off Ver
    Excel 03 and 10
    Posts
    25

    Thumbs down VBA fails every other time

    Good morning all.

    I have 2 routines, one is called from the other dependent on the outcome of a msg box answer.

    I have this code replicated 4 times, for 4 different msg boxes and 4 different sources and sheets. I sometimes get the warning box on failure, with the useful text "400". Please find below the routines.

    Please Login or Register  to view this content.
    This sits in the worksheet vba.

    Then...

    Please Login or Register  to view this content.
    This sits in a module

    It fails on the paste to dest1 the second time round, without fail. I cannot work out why it would work, then not and repeat this. If anyone has any ideas, I would greatly appreciate their input!

    Many thanks

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: VBA fails every other time

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    04-13-2012
    Location
    UK
    MS-Off Ver
    Excel 03 and 10
    Posts
    25

    Re: VBA fails every other time

    Sample Workbook.xlsm

    Please find attached workbook example. The button copies and pastes data from source to destination, as as you can see only works every other time. Thanks very much for anyone taking a look at this

  4. #4
    Registered User
    Join Date
    04-13-2012
    Location
    UK
    MS-Off Ver
    Excel 03 and 10
    Posts
    25

    Re: VBA fails every other time

    Can anyone help at all its doing my swede!

+ 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