+ Reply to Thread
Results 1 to 3 of 3

I need to place a pause/delay in my code to allow my program to catch up

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Angry I need to place a pause/delay in my code to allow my program to catch up

    Hi all, i have written some code, the idea is to format a spreadsheet that i receive every month so that it is in an acceptable format for me to copy and paste the info from this one excel file containing 7 sheets of information, into 7 seperate excel files to then be imported into access.

    My code goes into error after i have formatted it, this happens when it gets to the part where i ask it to navigate to the seperate excel file and open the file.

    I have checked the code by running through it with F8 and if i tap F8 all the way through my code it works sucesfully, its only when i leave it to its own devices that it cant seem to perform the action of opening my workbook (that i want to transfer the code into) quick enough before the next action (pasting) kicks in.

    ITS ALL SOOOOOO CONFUSING!

    any ideas please, or am i just being dumb?

  2. #2
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: I need to place a pause/delay in my code to allow my program to catch up

    Quote Originally Posted by fionajane View Post
    any ideas please, or am i just being dumb?
    Without seeing your code it's hard to tell
    No, seriously though, unless you are doing something unusual the code will normally open the new workbook, and won't continue until that workbook is open. So in this instance it would be worth being able to see some of your code, (or a sample workbook), in order to help understand what is going on and what might be causing the error.
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Unhappy Re: I need to place a pause/delay in my code to allow my program to catch up

    Hi there,

    sorry, i wasnt sure whether i needed to post the code. here it is: -


    Please Login or Register  to view this content.

    The red bit of the code is where it starts to have a nervous breakdown! it does all the other actions i tell it too until there.

    fiona x

+ 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