Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business
Line\Product Summary\Internal GBT Prod_Sum myValue.xls" should be "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Product Summary\Internal GBT Prod_Sum " & myValue & ".xls" -- Regards, Tom Ogilvy "Hargrove" wrote in message ... I have the following macro set-up to open 3 files in 3 separate folders. I would like for the end user to enter the month they want to review so I'm trying to add an input box that will fill in the date in the 3 file names. When I run the macro, I get a "Syntax Error" message and I'm not sure how to fix it. myValue = InputBox("Enter a date") Range("A1").Value = Format(myValue, ("yyyy_mm")) ChDir _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Product Breakdown" Workbooks.Open Filename:= _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Product Breakdown\Internal GBT Prod_Breakdown myValue.xls" _ , UpdateLinks:=3 ChDir _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Product Summary" Workbooks.Open Filename:= _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Product Summary\Internal GBT Prod_Sum myValue.xls" , UpdateLinks:=3 ChDir _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Summary Data" Workbooks.Open Filename:= _ "I:\EXLDATA\Central Analytics Project\Gross Batchtracks by Business Line\Summary Data\Internal GBT Summary myValue.xls" _ , UpdateLinks:=3 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto enter date when data in enter in another cell | Excel Worksheet Functions | |||
Excel: I enter date and format for date, but shows as number | Excel Discussion (Misc queries) | |||
How do I enter a date range ie -7 from current date in MS QUERY | Excel Discussion (Misc queries) | |||
Inputbox as Date | Excel Programming | |||
Date from InputBox | Excel Programming |