+ Reply to Thread
Results 1 to 11 of 11

Excel Automation - timer?

  1. #1
    Registered User
    Join Date
    11-05-2009
    Location
    dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Excel Automation - timer?

    Hi,

    I have a file that I update daily. It involves opening the file, going to a drop down menu and selecting 1 of the listed items and pressing a button to run the macro. Once the macro is complete, I then go back to the dropdown menu and select the next line item and press the same button to run the macro on this. I repeat this task 7times.

    All the macro does is load a txt file to a third party system.

    I am looking to see if it is possible to reduce the time it takes to do this task.

    Your help is as always invaluable!
    Last edited by brains28; 11-05-2009 at 11:01 AM.

  2. #2
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    Upload an example sheet and i will take a look,

    Teshi...

  3. #3
    Registered User
    Join Date
    11-05-2009
    Location
    dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Automation - timer?

    Here is the file.

    Thanks...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    I have created a new button for you that updates your drop down list value to the next one in the list using the list

    i copied your list into view in F9 onwards

    when you click the button it should change the value in F6 run your parser then change the value again and so on - this can even be put in a workbook open event

    Teshi
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    oops forgot to add the final parser command to the command button macro

  6. #6
    Registered User
    Join Date
    11-05-2009
    Location
    dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Automation - timer?

    Sorry Teshi,

    Could you post the final file?

    Thanks
    Brains

  7. #7
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    here you go - have even written the code into one version to allow it to run on open - you may need to change your file name back

    but if you use that one all you will need to do is open the file every time and clear the success messages

    any more help just ask


    Teshi...

  8. #8
    Registered User
    Join Date
    11-05-2009
    Location
    dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Automation - timer?

    Hi Teshi,

    When I press your button I get an error message.

    "Compile Error - Expected variable or procedure, not module"

    Not sure what the problem is, It bugs out on the first row of the below code with the above error


    Private Sub CommandButton1_Click()
    Worksheets("Sheet1").Range("F6").Value = Worksheets("Sheet1").Range("F9")
    Parser

  9. #9
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    ok - the issue there is that your Praser module shares the same name as the function - if you rename your module to something else maybe even "ParserModule" it should work fine

  10. #10
    Registered User
    Join Date
    11-05-2009
    Location
    dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Excel Automation - timer?

    Teshi, thanks so much. Really appreciate it.

  11. #11
    Registered User
    Join Date
    05-22-2009
    Location
    UK
    MS-Off Ver
    Excel 2000,2003 and regretably 2007
    Posts
    77

    Re: Excel Automation - timer?

    S'ok also if you want you can move your completion message from your ParserModule and put it at the end of the code i wrote for you

    Please dont forget to mark post resolved and if i have helped click on the little blue scales to improve my reputation lol

    thanks again

    teshi

+ 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