RSS Feed

Syndicate content

Mi piacerebbe sapere come sia possibile attivare una macro in automatico con una certa cadenza temporale. Mi spiego: vorrei che una mia macro si attivasse dopo ogni quarto d'ora (ex. 9.15; 9.30; 9.45; 10.00; 10.15;...). La potrei attivare io direttamente cliccando sul bottone oppure entrando nella finestra macro,... ma mi piacerebbe sapere se sia possibile rendere il tutto automatico. Grazie

Submitted by Anonimo on Sat, 23/01/2010 - 00:30

esempio Macro15minuti

Sub Macro15minuti()
   'Inserire qui il codice che si vuole eseguire
   
   'Dopo che il codice è stato eseguito la prima volta utilizzare il metodo OnTime()
   'per eseguire nuovamente il codice
   
   Application.OnTime Now() + TimeValue("00:15:00"), "Macro15minuti"
   
End Sub

Spero di esserti stato utile.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <style> <center> <p>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.

Custom Search