ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application On Time (https://www.excelbanter.com/excel-programming/431199-application-time.html)

Varne

Application On Time
 
Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.

Mike H

Application On Time
 
Hi,

I see nothing wrong with it providing it has been called it will set the
active cell to 90000000 12:02. Is that what you want it to do?

Mike

"Varne" wrote:

Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.


Mike H

Application On Time
 
I meant

set the active cell to 9000000000 at 12:02

"Mike H" wrote:

Hi,

I see nothing wrong with it providing it has been called it will set the
active cell to 90000000 12:02. Is that what you want it to do?

Mike

"Varne" wrote:

Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.


Jacob Skaria

Application On Time
 
It works. Few thoughts

--May be try that once again..Set the Security level to low/medium in
(Tools|Macro|Security). Close application and reopen. From workbook launch
VBE using short-key Alt+F11. From menu 'Insert' a module and paste the below
code. Save. Get back to Workbook. Run macro from Tools|Macro|Run <selected
macro()

--"12:02:00" is the 24 hour format..

If this post helps click Yes
---------------
Jacob Skaria


"Varne" wrote:

Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.


Varne

Application On Time
 
Hi!

Yeah. It works.

Thank You.

"Jacob Skaria" wrote:

It works. Few thoughts

--May be try that once again..Set the Security level to low/medium in
(Tools|Macro|Security). Close application and reopen. From workbook launch
VBE using short-key Alt+F11. From menu 'Insert' a module and paste the below
code. Save. Get back to Workbook. Run macro from Tools|Macro|Run <selected
macro()

--"12:02:00" is the 24 hour format..

If this post helps click Yes
---------------
Jacob Skaria


"Varne" wrote:

Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.


Varne

Application On Time
 
Hi!

It works now.

Thank You.

"Mike H" wrote:

I meant

set the active cell to 9000000000 at 12:02

"Mike H" wrote:

Hi,

I see nothing wrong with it providing it has been called it will set the
active cell to 90000000 12:02. Is that what you want it to do?

Mike

"Varne" wrote:

Hi!

Can someone tell me what is wrong with the following 2 macros? I have
limited access to Internet so if I am delayed in responding to responses
please appologise.

Sub Hey()

Application.OnTime TimeValue("12:02:00"), "Hermit"


End Sub


Sub Hermit()

ActiveCell.Value = 9000000

End Sub



The Error message say macros disabled or not available in this workbook. I
have enabled macros and both macros are in the same module in the workbook.

Thanks.



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

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