ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   All time running macro (https://www.excelbanter.com/excel-programming/320559-re-all-time-running-macro.html)

gocush[_29_]

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




Edwin Tam[_4_]

All time running macro
 
Yes, I agree with gocush. That could be not possible, as while the user is
typing into a cell, macros cannot be fired.


On 1/12/05 9:49 AM, in article
, "gocush"
/delete wrote:

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




MrHappy

All time running macro
 
Boy...hummm...good answers all...thank you very much...

I can get it to work...it just pauses when they start typing
then when they stop it then continues like it never stopped...

I was just wondering if there was a way to keep it still ticking while
entering! I'm convinced now there is not.

Again, thank you all for your responses, they were most
helpful :)~

Tim

"Edwin Tam" wrote:

Yes, I agree with gocush. That could be not possible, as while the user is
typing into a cell, macros cannot be fired.


On 1/12/05 9:49 AM, in article
, "gocush"
/delete wrote:

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






All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com