+ Reply to Thread
Results 1 to 3 of 3

make a command after a delay

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2014
    Location
    Yerevan, Armenia
    MS-Off Ver
    2010
    Posts
    4

    make a command after a delay

    Hi,

    after running such command
    ActiveWorkbook.SaveAs ActiveWorkbook.Path & "\" & sFilename
    I have to press yes (or enter) which I would like to write in vba.

    As far as I remember there was a command in VBA to run a command after some delay.
    How to call Application.OnKey "~" command with a second delay before calling .SaveAs command?

    Thanks,
    Sam
    Last edited by samvelt; 10-24-2014 at 07:24 AM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: make a command after a delay


    Hi,

    bad way but better is to disable DisplayAlerts property …

  3. #3
    Registered User
    Join Date
    10-08-2014
    Location
    Yerevan, Armenia
    MS-Off Ver
    2010
    Posts
    4

    Re: make a command after a delay

    Thanks, nicely works

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Frame1_Exit Causing Delay and Command Button not Working as a Result
    By MarcoFaust76 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2013, 03:17 AM
  2. [SOLVED] How to make a Command button run the "FORM" command to fill/populate a table?
    By jrobin7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2012, 12:26 PM
  3. Time delay on a macro command
    By Camilo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2012, 11:24 AM
  4. Nest SUM command with a command to make result cell blank
    By dwest185 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2011, 08:10 PM
  5. How to make a delay in an excel macro
    By excel_illiterate in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2009, 05:10 AM

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