PC Review


Reply
Thread Tools Rate Thread

Auto Date a Standard Form

 
 
PSULionRP
Guest
Posts: n/a
 
      31st Mar 2008
I have a form I have set-up that I send out everyday. Is there any way that I
can Auto Date the form??? Like in my Subject Line I refer to the Day and
Date, ex. Tuesday, April 1st, and I slao reference the day and date within
the body of the e-mail form.

Any help would be greatly appreciated and Thnaks in advance for your help.

PSULionRP
 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      1st Apr 2008


Where do you want the auto date?

--
Best regards
Michael Bauer - MVP Outlook
Outlook Categories? Category Manager Is Your Tool:
<http://www.vboffice.net/product.html?pub=6&lang=en>


Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:

> I have a form I have set-up that I send out everyday. Is there any way

that I
> can Auto Date the form??? Like in my Subject Line I refer to the Day and
> Date, ex. Tuesday, April 1st, and I slao reference the day and date within
> the body of the e-mail form.
>
> Any help would be greatly appreciated and Thnaks in advance for your help.
>
> PSULionRP

 
Reply With Quote
 
PSULionRP
Guest
Posts: n/a
 
      1st Apr 2008
I reference the day and date in the Subject line of my standard form and in
the body of the e-mail itself. I just wasn't sure if there was a way to auto
date within a form. Like using the Excel equivalent of "=TODAY()". Just as a
means of making my standard form more intelligent and saving keystrokes and
time is all.

"Michael Bauer [MVP - Outlook]" wrote:

>
>
> Where do you want the auto date?
>
> --
> Best regards
> Michael Bauer - MVP Outlook
> Outlook Categories? Category Manager Is Your Tool:
> <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
>
> > I have a form I have set-up that I send out everyday. Is there any way

> that I
> > can Auto Date the form??? Like in my Subject Line I refer to the Day and
> > Date, ex. Tuesday, April 1st, and I slao reference the day and date within
> > the body of the e-mail form.
> >
> > Any help would be greatly appreciated and Thnaks in advance for your help.
> >
> > PSULionRP

>

 
Reply With Quote
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      2nd Apr 2008


You can prepare the subject and body by inserting a placeholder, e.g.
"[@date]" (without quotations).

Then customize the form, open the VBScript editor and insert this sample
code:

Function Item_Open()
Item.Subject = Replace(Item.Subject, "[@date]", Date)
Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
End Function

--
Best regards
Michael Bauer - MVP Outlook
Outlook Categories? Category Manager Is Your Tool:
<http://www.vboffice.net/product.html?pub=6&lang=en>


Am Tue, 1 Apr 2008 05:33:00 -0700 schrieb PSULionRP:

> I reference the day and date in the Subject line of my standard form and

in
> the body of the e-mail itself. I just wasn't sure if there was a way to

auto
> date within a form. Like using the Excel equivalent of "=TODAY()". Just as

a
> means of making my standard form more intelligent and saving keystrokes

and
> time is all.
>
> "Michael Bauer [MVP - Outlook]" wrote:
>
>>
>>
>> Where do you want the auto date?
>>
>> --
>> Best regards
>> Michael Bauer - MVP Outlook
>> Outlook Categories? Category Manager Is Your Tool:
>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>
>>
>> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
>>
>>> I have a form I have set-up that I send out everyday. Is there any way

>> that I
>>> can Auto Date the form??? Like in my Subject Line I refer to the Day and
>>> Date, ex. Tuesday, April 1st, and I slao reference the day and date

within
>>> the body of the e-mail form.
>>>
>>> Any help would be greatly appreciated and Thnaks in advance for your

help.
>>>
>>> PSULionRP

>>

 
Reply With Quote
 
PSULionRP
Guest
Posts: n/a
 
      10th Apr 2008
That didn't work. I put [@date] in my subject line and within the body. When
I opened the template it displayed "[@date]"...

Any help would be appreciated.....

"Michael Bauer [MVP - Outlook]" wrote:

>
>
> You can prepare the subject and body by inserting a placeholder, e.g.
> "[@date]" (without quotations).
>
> Then customize the form, open the VBScript editor and insert this sample
> code:
>
> Function Item_Open()
> Item.Subject = Replace(Item.Subject, "[@date]", Date)
> Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
> End Function
>
> --
> Best regards
> Michael Bauer - MVP Outlook
> Outlook Categories? Category Manager Is Your Tool:
> <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Tue, 1 Apr 2008 05:33:00 -0700 schrieb PSULionRP:
>
> > I reference the day and date in the Subject line of my standard form and

> in
> > the body of the e-mail itself. I just wasn't sure if there was a way to

> auto
> > date within a form. Like using the Excel equivalent of "=TODAY()". Just as

> a
> > means of making my standard form more intelligent and saving keystrokes

> and
> > time is all.
> >
> > "Michael Bauer [MVP - Outlook]" wrote:
> >
> >>
> >>
> >> Where do you want the auto date?
> >>
> >> --
> >> Best regards
> >> Michael Bauer - MVP Outlook
> >> Outlook Categories? Category Manager Is Your Tool:
> >> <http://www.vboffice.net/product.html?pub=6&lang=en>
> >>
> >>
> >> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
> >>
> >>> I have a form I have set-up that I send out everyday. Is there any way
> >> that I
> >>> can Auto Date the form??? Like in my Subject Line I refer to the Day and
> >>> Date, ex. Tuesday, April 1st, and I slao reference the day and date

> within
> >>> the body of the e-mail form.
> >>>
> >>> Any help would be greatly appreciated and Thnaks in advance for your

> help.
> >>>
> >>> PSULionRP
> >>

>

 
Reply With Quote
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      11th Apr 2008


What did you do with the code?

--
Best regards
Michael Bauer - MVP Outlook
Outlook Categories? Category Manager Is Your Tool:
<http://www.vboffice.net/product.html?pub=6&lang=en>


Am Thu, 10 Apr 2008 14:36:00 -0700 schrieb PSULionRP:

> That didn't work. I put [@date] in my subject line and within the body.

When
> I opened the template it displayed "[@date]"...
>
> Any help would be appreciated.....
>
> "Michael Bauer [MVP - Outlook]" wrote:
>
>>
>>
>> You can prepare the subject and body by inserting a placeholder, e.g.
>> "[@date]" (without quotations).
>>
>> Then customize the form, open the VBScript editor and insert this sample
>> code:
>>
>> Function Item_Open()
>> Item.Subject = Replace(Item.Subject, "[@date]", Date)
>> Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
>> End Function
>>
>> --
>> Best regards
>> Michael Bauer - MVP Outlook
>> Outlook Categories? Category Manager Is Your Tool:
>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>
>>
>> Am Tue, 1 Apr 2008 05:33:00 -0700 schrieb PSULionRP:
>>
>>> I reference the day and date in the Subject line of my standard form and

>> in
>>> the body of the e-mail itself. I just wasn't sure if there was a way to

>> auto
>>> date within a form. Like using the Excel equivalent of "=TODAY()". Just

as
>> a
>>> means of making my standard form more intelligent and saving keystrokes

>> and
>>> time is all.
>>>
>>> "Michael Bauer [MVP - Outlook]" wrote:
>>>
>>>>
>>>>
>>>> Where do you want the auto date?
>>>>
>>>> --
>>>> Best regards
>>>> Michael Bauer - MVP Outlook
>>>> Outlook Categories? Category Manager Is Your Tool:
>>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>>>
>>>>
>>>> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
>>>>
>>>>> I have a form I have set-up that I send out everyday. Is there any way
>>>> that I
>>>>> can Auto Date the form??? Like in my Subject Line I refer to the Day

and
>>>>> Date, ex. Tuesday, April 1st, and I slao reference the day and date

>> within
>>>>> the body of the e-mail form.
>>>>>
>>>>> Any help would be greatly appreciated and Thnaks in advance for your

>> help.
>>>>>
>>>>> PSULionRP
>>>>

>>

 
Reply With Quote
 
PSULionRP
Guest
Posts: n/a
 
      11th Apr 2008
Ok...Here's what I did.

I opened my Form...Tools ==> Forms ==> Chhose Form

Once my form was opened, I added [@date] to the Subject Line and it now
reads...

TESTING 1-2-3-4---[@date]

I also added it to the body of the e-mail, testing it a couple of ways and
that reads...

Test using todays's date @date
or [@date]


I then went to VB... Tools ==> Macro ==> Visual Basic Editor

I added the code you had previously suggested to Modules in Module 1...


Function Item_Open()
Item.Subject = Replace(Item.Subject, "[@date]", Date)
Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
End Function

A Visual Basic even novice I am not. So I'm sure it's something I have done
within VB.

I appreciate your feedback and help Michael.

Thanks.


"Michael Bauer [MVP - Outlook]" wrote:

>
>
> What did you do with the code?
>
> --
> Best regards
> Michael Bauer - MVP Outlook
> Outlook Categories? Category Manager Is Your Tool:
> <http://www.vboffice.net/product.html?pub=6&lang=en>
>
>
> Am Thu, 10 Apr 2008 14:36:00 -0700 schrieb PSULionRP:
>
> > That didn't work. I put [@date] in my subject line and within the body.

> When
> > I opened the template it displayed "[@date]"...
> >
> > Any help would be appreciated.....
> >
> > "Michael Bauer [MVP - Outlook]" wrote:
> >
> >>
> >>
> >> You can prepare the subject and body by inserting a placeholder, e.g.
> >> "[@date]" (without quotations).
> >>
> >> Then customize the form, open the VBScript editor and insert this sample
> >> code:
> >>
> >> Function Item_Open()
> >> Item.Subject = Replace(Item.Subject, "[@date]", Date)
> >> Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
> >> End Function
> >>
> >> --
> >> Best regards
> >> Michael Bauer - MVP Outlook
> >> Outlook Categories? Category Manager Is Your Tool:
> >> <http://www.vboffice.net/product.html?pub=6&lang=en>
> >>
> >>
> >> Am Tue, 1 Apr 2008 05:33:00 -0700 schrieb PSULionRP:
> >>
> >>> I reference the day and date in the Subject line of my standard form and
> >> in
> >>> the body of the e-mail itself. I just wasn't sure if there was a way to
> >> auto
> >>> date within a form. Like using the Excel equivalent of "=TODAY()". Just

> as
> >> a
> >>> means of making my standard form more intelligent and saving keystrokes
> >> and
> >>> time is all.
> >>>
> >>> "Michael Bauer [MVP - Outlook]" wrote:
> >>>
> >>>>
> >>>>
> >>>> Where do you want the auto date?
> >>>>
> >>>> --
> >>>> Best regards
> >>>> Michael Bauer - MVP Outlook
> >>>> Outlook Categories? Category Manager Is Your Tool:
> >>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
> >>>>
> >>>>
> >>>> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
> >>>>
> >>>>> I have a form I have set-up that I send out everyday. Is there any way
> >>>> that I
> >>>>> can Auto Date the form??? Like in my Subject Line I refer to the Day

> and
> >>>>> Date, ex. Tuesday, April 1st, and I slao reference the day and date
> >> within
> >>>>> the body of the e-mail form.
> >>>>>
> >>>>> Any help would be greatly appreciated and Thnaks in advance for your
> >> help.
> >>>>>
> >>>>> PSULionRP
> >>>>
> >>

>

 
Reply With Quote
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      18th Apr 2008
Am Fri, 11 Apr 2008 05:44:01 -0700 schrieb PSULionRP:

Sorry for the delay, I miss some threads these days.

The code isn't for the VBA editor but VBScript. When you have opened the
form, click Tools/Forms/Customize to customize it. Then open the
VBScript editor and paste the code there.

--
Best regards
Michael Bauer - MVP Outlook
Outlook Categories? Category Manager Is Your Tool:
<http://www.vboffice.net/product.html?pub=6&lang=en>

> Ok...Here's what I did.
>
> I opened my Form...Tools ==> Forms ==> Chhose Form
>
> Once my form was opened, I added [@date] to the Subject Line and it

now
> reads...
>
> TESTING 1-2-3-4---[@date]
>
> I also added it to the body of the e-mail, testing it a couple of ways

and
> that reads...
>
> Test using todays's date @date
> or [@date]
>
>
> I then went to VB... Tools ==> Macro ==> Visual Basic Editor
>
> I added the code you had previously suggested to Modules in Module

1...
>
>
> Function Item_Open()
> Item.Subject = Replace(Item.Subject, "[@date]", Date)
> Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
> End Function
>
> A Visual Basic even novice I am not. So I'm sure it's something I have

done
> within VB.
>
> I appreciate your feedback and help Michael.
>
> Thanks.
>
>
> "Michael Bauer [MVP - Outlook]" wrote:
>
>>
>>
>> What did you do with the code?
>>
>> --
>> Best regards
>> Michael Bauer - MVP Outlook
>> Outlook Categories? Category Manager Is Your Tool:
>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>
>>
>> Am Thu, 10 Apr 2008 14:36:00 -0700 schrieb PSULionRP:
>>
>>> That didn't work. I put [@date] in my subject line and within the

body.
>> When
>>> I opened the template it displayed "[@date]"...
>>>
>>> Any help would be appreciated.....
>>>
>>> "Michael Bauer [MVP - Outlook]" wrote:
>>>
>>>>
>>>>
>>>> You can prepare the subject and body by inserting a placeholder,

e.g.
>>>> "[@date]" (without quotations).
>>>>
>>>> Then customize the form, open the VBScript editor and insert this

sample
>>>> code:
>>>>
>>>> Function Item_Open()
>>>> Item.Subject = Replace(Item.Subject, "[@date]", Date)
>>>> Item.HTMLBody = Replace(Item.HTMLBody, "[@date]", Date)
>>>> End Function
>>>>
>>>> --
>>>> Best regards
>>>> Michael Bauer - MVP Outlook
>>>> Outlook Categories? Category Manager Is Your Tool:
>>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>>>
>>>>
>>>> Am Tue, 1 Apr 2008 05:33:00 -0700 schrieb PSULionRP:
>>>>
>>>>> I reference the day and date in the Subject line of my standard

form and
>>>> in
>>>>> the body of the e-mail itself. I just wasn't sure if there was a

way to
>>>> auto
>>>>> date within a form. Like using the Excel equivalent of "=TODAY()".

Just
>> as
>>>> a
>>>>> means of making my standard form more intelligent and saving

keystrokes
>>>> and
>>>>> time is all.
>>>>>
>>>>> "Michael Bauer [MVP - Outlook]" wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Where do you want the auto date?
>>>>>>
>>>>>> --
>>>>>> Best regards
>>>>>> Michael Bauer - MVP Outlook
>>>>>> Outlook Categories? Category Manager Is Your Tool:
>>>>>> <http://www.vboffice.net/product.html?pub=6&lang=en>
>>>>>>
>>>>>>
>>>>>> Am Mon, 31 Mar 2008 10:34:39 -0700 schrieb PSULionRP:
>>>>>>
>>>>>>> I have a form I have set-up that I send out everyday. Is there

any way
>>>>>> that I
>>>>>>> can Auto Date the form??? Like in my Subject Line I refer to the

Day
>> and
>>>>>>> Date, ex. Tuesday, April 1st, and I slao reference the day and

date
>>>> within
>>>>>>> the body of the e-mail form.
>>>>>>>
>>>>>>> Any help would be greatly appreciated and Thnaks in advance for

your
>>>> help.
>>>>>>>
>>>>>>> PSULionRP
>>>>>>
>>>>

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto calculate date in form celarsen Microsoft Access Form Coding 6 26th Sep 2008 07:58 PM
need a form to auto date on table zippyties Microsoft Access Database Table Design 2 16th Sep 2008 10:53 PM
Auto Format Date Fields in Form TotallyConfused Microsoft Access Forms 0 29th Jan 2008 07:52 PM
Auto populate date in a form =?Utf-8?B?Q2hyaXMgSi4=?= Microsoft Access Forms 6 15th Nov 2007 07:25 PM
auto enter the date in a form =?Utf-8?B?S2l0dHk=?= Microsoft Access 4 2nd Feb 2007 04:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.