Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Automatic running of Macro for the whole spreadsheet

Is it possible to have a macro that runs every minute or whenever anything
changes in the whole spreadsheet for the purpose of re-publishing
to a website?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Automatic running of Macro for the whole spreadsheet

To run a macro every minute, use the OnTime method. See
www.cpearson.com/excel/ontime.htm for more information. To run a
macro when anything in the workbook changes, use the following
code in the ThisWorkbook code module:

Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Range)
MyMacro ' change macro name as required
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Rob" wrote in message
...
Is it possible to have a macro that runs every minute or
whenever anything
changes in the whole spreadsheet for the purpose of
re-publishing
to a website?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a Macro from a Spreadsheet Function Patrick (GVC) Excel Worksheet Functions 2 February 10th 08 12:30 PM
Prevent A Macro From Running If SpreadSheet is Filtered carl Excel Worksheet Functions 1 June 22nd 05 04:04 PM
running macro at automatic time intervals tjb Excel Worksheet Functions 1 February 28th 05 09:40 PM
Macro Running at Spreadsheet Start MWhitehead Excel Programming 3 June 10th 04 12:35 PM
Running Macro when value in spreadsheet is true pgerrish Excel Programming 0 April 22nd 04 05:32 PM


All times are GMT +1. The time now is 03:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"