I have set up several variables where the user inputs the value via input boxes. The problem I have arises when the macro runs onto the next procedure. For example, one of the variables I have is:-
Dim message6, title6, default6, day
message6 = "Please enter the day you are reporting on in the format of ddd (e.g. Monday would be Mon)"
title6 = "Inputbox"
default6 = "Mon"
day = InputBox(message6, title6, default6)
The user inputs the day (e.g. Wed) and this is stored in the variable called day. When the macro runs onto the next procedure, I want the value stored in day (Wed) to be carryed over to this next procedure. But what actually happens is I get the following error
Compile error: Argument not optional
Would anyone be able to tell me why this happening and any way I can resolve it?
Thanks.
Dim message6, title6, default6, day
message6 = "Please enter the day you are reporting on in the format of ddd (e.g. Monday would be Mon)"
title6 = "Inputbox"
default6 = "Mon"
day = InputBox(message6, title6, default6)
The user inputs the day (e.g. Wed) and this is stored in the variable called day. When the macro runs onto the next procedure, I want the value stored in day (Wed) to be carryed over to this next procedure. But what actually happens is I get the following error
Compile error: Argument not optional
Would anyone be able to tell me why this happening and any way I can resolve it?
Thanks.