ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inputbox accepting desired response (https://www.excelbanter.com/excel-programming/390497-inputbox-accepting-desired-response.html)

Amitriumphs

Inputbox accepting desired response
 
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


JLGWhiz

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




All times are GMT +1. The time now is 09:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com