Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Opening a file that changes dates

How would you call a file in VB if the file name is always preceeded by the
date. How did I get a macro to open up a file that is named the same all the
time, but has the date at the end always changed?

--
Regards,
Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Opening a file that changes dates

Michael,
Why don't you post some typical file names.
Also tell us how you determine what file you want to open.
Jim Cone
San Francisco, USA


"Michael from Austin"

wrote in message

How would you call a file in VB if the file name is always preceeded by the
date. How did I get a macro to open up a file that is named the same all the
time, but has the date at the end always changed?--
Regards,
Michael
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Opening a file that changes dates

OK.. File name would be like

WA 10-07-05 today. If I ran the macro tomorrow, the file would then be WA
10-08-05, It would not go and open this file because the name is not coded in
VB. I want to be able to have the code reference todays date and then be able
to open and write to and or copy information from it... Can this be done?

--
Regards,
Michael


"Jim Cone" wrote:

Michael,
Why don't you post some typical file names.
Also tell us how you determine what file you want to open.
Jim Cone
San Francisco, USA


"Michael from Austin"

wrote in message

How would you call a file in VB if the file name is always preceeded by the
date. How did I get a macro to open up a file that is named the same all the
time, but has the date at the end always changed?--
Regards,
Michael

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
opening a file in Excel starts application but dose not open file Bob Shelton Excel Discussion (Misc queries) 1 July 2nd 08 07:51 PM
File:1 and File:2 -- Double Files when Opening One File dallin Excel Discussion (Misc queries) 1 January 25th 07 02:53 AM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Error:Invalid File format,while opening an Excel Template file Saurabh Excel Programming 1 January 17th 05 07:15 AM


All times are GMT +1. The time now is 01:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"