Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a program that open an excel file from file selected cell (see below).
However, I have problem to create an offset. What I want is to have the program to read the new work order number as a third directory and then read the filename. Could you please help me with this matter? Thanks in advance. Maperalia A B C D E 1 WORK ORDER Location Cut FILENAME 2 2563 AA 11 AA @ 11.xls 3 2564 BB 22 BB @ 22.xls 4 2565 CC 33 CC @ 33.xls Sub OpenSelectFilename() Dim dcell As Range Set dcell = ActiveSheet.Range("Bi") directory = "S:\test\pants\" & dcell.OFFSET(-3, 0).Value & "\" filetext = Selection.Value & ".xls" Workbooks.Open directory & filetext End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
In Excel - Use Windows Explorer instead of File Open to open file | Excel Discussion (Misc queries) | |||
workbooks.open function fails to open an existing excel file when used in ASP, but works in VB. | Excel Programming | |||
Open email windows can't open, excel shreadsheet file .xls ? | Excel Discussion (Misc queries) | |||
How do I stop Excel from closing the open file each time I open a. | Setting up and Configuration of Excel |