Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have the following code that I want to open a text file that is saved as the current date. It works but opens the text file in a new excel spreadsheet. Is there any way to open the file in my "tester.xls" (which is where I have this macro)? Code: -------------------- Sub True() Dim SourceBook As Workbook ChDir ("C:\Program Files\helper") Set SourceBook = Workbooks.Open(Filename:=Format(Date, "mm_dd_yy.txt")) End Sub -------------------- -- Yepp12 ------------------------------------------------------------------------ Yepp12's Profile: http://www.excelforum.com/member.php...o&userid=28740 View this thread: http://www.excelforum.com/showthread...hreadid=492855 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Edits not saved when re-opening file | Excel Worksheet Functions | |||
how to find where is the current file saved | Excel Discussion (Misc queries) | |||
Make date change in excel to current date when opening daily? | Excel Discussion (Misc queries) | |||
SELECTING CURRENT DATE AT OPENING | Excel Worksheet Functions | |||
Opening a saved file | Excel Programming |