Help! Time Looped Macros

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Is there no little lines under any of the letters under the words.

What Im after is how you would click it if you didnt have a mouse.

hope that make sence.

ie if I was trying to put clipart in without a mouse I would click

Alt I
P
C

I need to know this for getting to yours
 
Upvote 0
Data (Alt D) -> Stock Quotes from MSN Money (Q) -> Update Quotes (U)

and that needs to happen every 6 minutes. Thanks a lot man.
 
Upvote 0
Write,

I may be repeating myself now but we can have it sorted here

Here we go

first of all in VBA double click on this workbook (It appears under the sheets, above the forms and macros.)

and input this

Private Sub Workbook_Open()
Reset
End Sub


then in a module stick

Sub Reset()
Static SchedSave
If SchedSave <> 0 Then
On Error Resume Next
Application.OnTime SchedSave, "Macro1", , False
End If
SchedSave = Now + TimeValue("00:06:00") ' changed to 6 minutes
Application.OnTime SchedSave, "Macro1", , True
End Sub


The above assumes that Macro1 contains the code to update your Stock.
Change this if its not macro1.

Now where we had
Application.CommandBars.FindControl(ID:=1).Execute

in your macro (which is Macro1 in my example)

wipe that and in its place put
SendKeys ("%DQU"), True

This should now work every 6 mins

Cheers
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top