+ Reply to Thread
Results 1 to 3 of 3

How to open Excel files and click a button ?

  1. #1
    Registered User
    Join Date
    10-29-2007
    Posts
    12

    How to open Excel files and click a button ?

    Hi guys,

    I have been looking for a solution for hours but no success

    Here is my problem. I have 5 Excel sheets. Each Excel sheet contains a button and a lot of (similar) vba code linked to the button. When someone clicks on the button the vba code is executed. Each button has to be clicked once per day so I was looking for a way to automate this and process all the data during the night.

    I have been experimenting with Auto_Open and Workbook_Open but no success. I created an Excel sheet called start.xls which will trigger 'the clicks on the buttons' via Workbook_Open ... but how do I let vba click the button ? I even tried to record a macro via the wizard but the click on the button is not recorded

    I hope someone can help me
    Bananas (again)

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You would need to use the Ontime Method, search the Forum I have posted examples here.

    Place the buttons' code into a module then call it from the button or the ontime macro
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    09-04-2006
    Location
    Yorkshire, England
    Posts
    267
    Why not tell vba to run the macro accociated with the button instead?
    i.e. the call method
    JR
    Versions
    Mac OS X 'Leopard'
    Mac MS Office Excel 2004
    Windows XP
    MS Excel 2002
    MS Excel 2003

+ 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