old excel macro language

command_z

New Member
Joined
Feb 24, 2003
Messages
3
Hi all- I just found this website. I wish I would have found it years ago! I am wondering if I am the the only dinosaur out there still using the old macro commands??? I just cant bring myself to use/learn visual basic
 
I started using
LOTUS 1-2-3 in USAF
Then using HYPERCARD a Apple product.
And then
Excel 4
And on and on.
I figure you have to move with the times.
I find basic command in Excel Vba easy to understand but when it comes to doing things the fastest considering milliseconds don't count on me for the fastest code. And I like using code I understand even if it takes another 3 seconds.
<strike></strike>
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
VBA has a sort of similar wait method

Code:
<code>If Application.[B]Wait[/B](Now + TimeValue("0:00:10")) Then
    MsgBox "Time expired"
End If</code>
 
Upvote 0
I just tried
Code:
<code>Application.[B]Wait[/B](Now + TimeValue("0:00:10")</code>
and it gave a syntax error - is it because I didn't use the full words of If etc

I don't want a message box, just to wait for the seconds I nominate then carry on with the rest of the macro
 
Upvote 0
You don't have to use a msgbox, that's just for the example.

Code:
Sub WaitTest()
    Debug.Print "Waiting for 10 seconds...."
    
    Application.Wait (Now + TimeValue("0:00:10"))
    
    Debug.Print "... now continuing code execution"
End Sub

This produces a 10 sec delay.
 
Upvote 0
@Mabocat....your missing a bracket at the end of the line !!
@MAIT...I'm with you on understanding rather than faster
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

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