LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default All time running macro

Basically no, not simultaneously.

"MrHappy" wrote:

Edwin,

This is very useful information you have forwarded to me...

I am just wondering, is it possible for a macro to be running at the same
time as a person is typing in data...not when they make a change to then have
the macro run...but have the macro always running and let the user imput or
whatever they want to do?

Does that help any?

"Edwin Tam" wrote:

If you want a macro to run every time the user enters anything or changes
anything on a particular spreadsheet, you can use the Change event of that
worksheet.

In VBA Editor, in projects, under your workbook, under Microsoft Excel
Objects, double-click that worksheet and enter the macro below.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
MsgBox "worksheet changed"
End Sub


If you want a macro to run every time the user enters anything or changes
anything on ANY worksheet, you can use the SheetChange event of the
workbook.

In VBA Editor, in projects, under your workbook, under Microsoft Excel
Objects, double-click "ThisWorkbook" and enter the macro below.

Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
MsgBox "one of the worksheets changed"
End Sub

Regards,
Edwin Tam

http://www.vonixx.com



On 1/12/05 5:05 AM, in article
, "MrHappy"
wrote:

Is there a way the user can input data into a spreadsheet and have a macro
running at the same time?

Like moving water or flying birds while they enter the data?

tim



 
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 based on the time WNYC Excel Discussion (Misc queries) 1 March 22nd 10 09:45 PM
Running a macro at a specified time The Bobka Excel Discussion (Misc queries) 1 June 30th 05 05:25 PM
Running a macro at a certain time Tam Excel Discussion (Misc queries) 3 March 2nd 05 02:50 PM
running macro at automatic time intervals tjb Excel Worksheet Functions 1 February 28th 05 09:40 PM
Running a macro at a certain time Dave Peterson[_3_] Excel Programming 0 October 17th 03 01:49 AM


All times are GMT +1. The time now is 09:32 AM.

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"