View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default Inputbox accepting desired response

I'm not sure this is what you want, but:

Sub inptBxx()
myDate = InputBox("Enter a date as month/year.", "Date")
myDate = Format(myDate, "mmyyyy")
MsgBox myDate
End Sub


"Amitriumphs" wrote:

Hi all,

I need a macro with an input box accepting certain dates which matches
with the names of the folder present in C:\ drive in the format MMYYYY
and should give error message on any other character entered.

Any help would be appreciated.

Thanks,
Amit