+ Reply to Thread
Results 1 to 6 of 6

any way to call a marco every 10mins?

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    59

    any way to call a marco every 10mins?

    any way to call a marco every 10mins?

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: any way to call a marco every 10mins?

    Look for the Ontime method
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-07-2010
    Location
    south africa
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: any way to call a marco every 10mins?

    i wanna know about ontime in EXCEL 2010. i got this code online and it does not work as it shows the form then does not unload it after the alloted time. In other words the useform does not go away after 5 seconds


    This is the code:

    Sub Workbook_Open()
    MyStartupForm.Show
    End Sub

    Private Sub MyStartupForm_Activate()
    Application.OnTime Now + TimeValue("00:00:05"), "Kill_The_Form"
    Unload MyStartupForm

    End Sub

    Private Sub Kill_The_Form()
    Unload MyStartupForm
    End Sub

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: any way to call a marco every 10mins?

    any way to call a marco every 10mins?
    Pay someone to lean out of the window and shout his name

    I'll get my coat...
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: any way to call a marco every 10mins?

    st0kvis

    Please start a new thread rather than asking a question in someone else's per the forum rules:

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.

    Dom

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: any way to call a marco every 10mins?

    example:

    Please Login or Register  to view this content.
    It runs every 5 seconds. Do not forget to think of the way you will stop it

+ 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