Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am in need of a way to open a text file based on the
date in a worksheet. I have many text files saved as ST20061007.txt , ST20061006.txt ect. all files start with ST then the date. I need to be able to open each file based on a date inputted into another cell in the workbook, So if a user enters 10/6/2006 then it would open the file ST20061006.txt. Any help would be Great. Dan *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dan
You can try this with the date in A1 it open the file that is in C:\ Workbooks.OpenText "C:\ST" & Format(Range("A1"), "yyyymmdd") & ".txt", Origin:=xlWindows -- Regards Ron de Bruin http://www.rondebruin.nl "Dan Jordan" wrote in message ... I am in need of a way to open a text file based on the date in a worksheet. I have many text files saved as ST20061007.txt , ST20061006.txt ect. all files start with ST then the date. I need to be able to open each file based on a date inputted into another cell in the workbook, So if a user enters 10/6/2006 then it would open the file ST20061006.txt. Any help would be Great. Dan *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open CSV file, format data and write output to a text file. | Excel Programming | |||
Open file based on yesterday's date | Excel Programming | |||
How do I import text file, analyze data, export results, open next file | Excel Programming | |||
Excel VBA - open text file, replace text, save file? | Excel Programming | |||
Open delimited text file to excel without changing data in that file | Excel Programming |