PC Review


Reply
Thread Tools Rate Thread

Application On Time

 
 
Varne
Guest
Posts: n/a
 
      16th Jul 2009
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.
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      16th Jul 2009
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.

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      16th Jul 2009
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.

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      16th Jul 2009
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.

 
Reply With Quote
 
Varne
Guest
Posts: n/a
 
      16th Jul 2009
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.

 
Reply With Quote
 
Varne
Guest
Posts: n/a
 
      16th Jul 2009
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application takes a long time to open a dialog after some time nagar@community.nospam Microsoft C# .NET 10 23rd Mar 2007 10:32 AM
DDE application hang when there is another .NET window form application is running at the same time Joshua Chan Microsoft Dot NET Framework Forms 1 11th Jan 2005 04:27 PM
How to Start Application on Given Time & how to add application on pocket PC screen. Hiten Microsoft Dot NET Compact Framework 1 28th Oct 2004 04:15 PM
RE: application Run Time Name =?Utf-8?B?QmFydA==?= Microsoft C# .NET 0 7th Jul 2004 09:05 PM
Time of application (application domain) start Gawel Microsoft C# .NET 1 25th May 2004 05:42 PM


Features
 

Advertising
 

Newsgroups
 


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