Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need help to write a macro which asks what month, and then searches for
that month in the tabs and takes the information from that worksheet |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub PromptForMonth()
Dim res as String Dim mnth as String Dim sh as Worksheet res = InputBox("Enter Month as "FEB") if isdate(res & " 1, 2000") then mnth = Format(cdate(res & ", 2000"),"mmm") set sh = Worksheets(mnth) else Msgbox "Not a valid entry" End if |End Sub -- Regards, Tom Ogilvy "Harps" <u18912@uwe wrote in message news:5c2a3eadc1114@uwe... I need help to write a macro which asks what month, and then searches for that month in the tabs and takes the information from that worksheet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |