Hi Forum Friends
This is a sample macro to illustrate my problem.
I would like the macro to work such that:
1. I get 1 second to enter a single digit.
2 the macro then uses the entered digit else it uses the default of 3
WITHOUT stopping and prompting me for input i.e. without Appication.Inputbox, entering a value and OK .
Many thanks
Al
![]()
Sub multibeepX() 'Sample Code Dim my_beep As Integer my_beep = 3 Application.Wait (Now + TimeValue("0:00:01")) my_beep = Application.InputBox(" Enter number of beeps: ", Default:=Format(my_beep), Type:=1) For I = 1 To my_beep Beep Next I End Sub
Bookmarks