|
Rich McNeil 866 653 5105 www.bostonworkstation.com From: Lombard,
Christopher [mailto:[EMAIL PROTECTED] That won’t work if the program is
running on the 31st. I’d respond to the Listserv, but
for some reason my message got returned to me. You can do the follow SendKeys “C:\Meditech
Archvies\” & Format(Now()-CInt(Format(Now(),”dd”)),”mm”) & Format(Now(),”yyyy”) & “.txt” Now() –
CInt(Format(Now(),”dd”)) will take today’s date and minus the
day. If today was March 3rd, 2005 and you minus three, then you would get
the previous month - This is how I’d do it, but someone
else might have an easier way. Bonus: Format(Now()-CInt(Format(Now(),”dd”)),”mmm”)
& Format(Now(),”yyyy”) Use: mmm for short month (Feb) or mmmm for
long month (February) Chris Lombard -----Original Message----- Try Now – 30 for
the date Rich McNeil 866 653 5105 www.bostonworkstation.com From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MORRILL,DENISE This is probably very
basic.... I am downloading a report
at the beginning of every month for last month's data. I want to name the
file to be last month's name, so that if I were downloading a
report on The following code: SendKeys "C:\Meditech
Archives\" & Format(Now(), "mmyyyy") & ".txt" recognizes that today is
March whatever and gives me 032005.txt. How can I tell it to use LAST
month's designation? Bonus question - how would
I tell it to use the name (February) of the month vs. the month number? Many thanks in advance! Denise Denise Morrill Senior Systems
Analyst 207.761.2265 [EMAIL PROTECTED] CONFIDENTIAL NOTICE: This email message, including |
- [Talk] VB 101 MORRILL,DENISE
- RE: [Talk] VB 101 Rich McNeil
- RE: [Talk] VB 101 Rich McNeil
- RE: [Talk] VB 101 Benjamin, Morris
- RE: [Talk] VB 101 Dwyer, Tom
- RE: [Talk] VB 101 MORRILL,DENISE
- Re: [Talk] VB 101 Dwight Clevenger
- RE: [Talk] VB 101 Dickens, David
- RE: [Talk] VB 101 David Shelby
