A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Insert Date - Format Text / Cursor Location



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 5th 08, 01:16 PM posted to microsoft.public.outlook.program_forms
srm
external usenet poster
 
Posts: 72
Default Insert Date - Format Text / Cursor Location

I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.

Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:

bold09/05/08bold - Sample text
cursor location

Thanks

Shawn

====================

Sub InsertDate()
Dim objItem As Object

Set objItem = Application.ActiveInspector.CurrentItem
objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf

Set objItem = Nothing

End Sub

=====================
  #2  
Old September 5th 08, 03:39 PM posted to microsoft.public.outlook.program_forms
srm
external usenet poster
 
Posts: 72
Default Insert Date - Format Text / Cursor Location

On Sep 5, 8:16*am, srm wrote:
I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.

Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:

bold09/05/08bold - Sample text
cursor location

Thanks

Shawn

====================

Sub InsertDate()
* * Dim objItem As Object

* * Set objItem = Application.ActiveInspector.CurrentItem
* * * * objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf

* * Set objItem = Nothing

End Sub

=====================


Had one more question. My code always place the text at the bottom of
the notes. Is there something that will allow be to place the text
where the cursor is located?

Thank you.
  #3  
Old September 5th 08, 03:55 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Insert Date - Format Text / Cursor Location

That's possible but the details will depend on:

1) What type of item you're inserting data into
2) If it's a message, whether it's an unsent or received item, the message
format (HTML, plain text, RTF) and whether Word is the email editor
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"srm" wrote:

On Sep 5, 8:16 am, srm wrote:
I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.

Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:

bold09/05/08bold - Sample text
cursor location

Thanks

Shawn

====================

Sub InsertDate()
Dim objItem As Object

Set objItem = Application.ActiveInspector.CurrentItem
objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf

Set objItem = Nothing

End Sub

=====================


Had one more question. My code always place the text at the bottom of
the notes. Is there something that will allow be to place the text
where the cursor is located?

Thank you.

  #4  
Old September 5th 08, 04:20 PM posted to microsoft.public.outlook.program_forms
srm
external usenet poster
 
Posts: 72
Default Insert Date - Format Text / Cursor Location

On Sep 5, 10:55*am, Sue Mosher [MVP-Outlook]
wrote:
That's possible but the details will depend on:

1) What type of item you're inserting data into
2) If it's a message, whether it's an unsent or received item, the message
format (HTML, plain text, RTF) and whether Word is the email editor
--
Sue Mosher, Outlook MVP
* *Author of Microsoft Outlook Programming: Jumpstart
* * * for Administrators, Power Users, and Developers
* * *http://www.outlookcode.com/jumpstart.aspx

"srm" wrote:
On Sep 5, 8:16 am, srm wrote:
I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.


Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:


bold09/05/08bold - Sample text
cursor location


Thanks


Shawn


====================


Sub InsertDate()
* * Dim objItem As Object


* * Set objItem = Application.ActiveInspector.CurrentItem
* * * * objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf


* * Set objItem = Nothing


End Sub


=====================


Had one more question. My code always place the text at the bottom of
the notes. Is there something that will allow be to place the text
where the cursor is located?


Thank you.


Currently I'm inserting the data into Notes in "Contacts" and "Tasks".

I eventually want to expand these items into email messages, but first
wanted to get the Notes working first. When I send emails, I use
Outlook (mostly HTML / Plain text). I do not use Word as my email
editor.

Thanks

Shawn
  #5  
Old September 5th 08, 05:37 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Insert Date - Format Text / Cursor Location

For contacts and tasks, you'd want to use the third-party Redemption library
and its SafeInspector object, described at the bottom of the page at
http://www.outlookcode.com/article.aspx?id=31
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"srm" wrote:

On Sep 5, 10:55 am, Sue Mosher [MVP-Outlook]
wrote:
That's possible but the details will depend on:

1) What type of item you're inserting data into
2) If it's a message, whether it's an unsent or received item, the message
format (HTML, plain text, RTF) and whether Word is the email editor

"srm" wrote:
On Sep 5, 8:16 am, srm wrote:
I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.


Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:


bold09/05/08bold - Sample text
cursor location


Thanks


Shawn


====================


Sub InsertDate()
Dim objItem As Object


Set objItem = Application.ActiveInspector.CurrentItem
objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf


Set objItem = Nothing


End Sub


=====================


Had one more question. My code always place the text at the bottom of
the notes. Is there something that will allow be to place the text
where the cursor is located?


Thank you.


Currently I'm inserting the data into Notes in "Contacts" and "Tasks".

I eventually want to expand these items into email messages, but first
wanted to get the Notes working first. When I send emails, I use
Outlook (mostly HTML / Plain text). I do not use Word as my email
editor.

Thanks

Shawn

  #6  
Old September 8th 08, 11:41 AM posted to microsoft.public.outlook.program_forms
srm
external usenet poster
 
Posts: 72
Default Insert Date - Format Text / Cursor Location

On Sep 5, 12:37*pm, Sue Mosher [MVP-Outlook]
wrote:
For contacts and tasks, you'd want to use the third-party Redemption library
and its SafeInspector object, described at the bottom of the page athttp://www.outlookcode.com/article.aspx?id=31
--
Sue Mosher, Outlook MVP
* *Author of Microsoft Outlook Programming: Jumpstart
* * * for Administrators, Power Users, and Developers
* * *http://www.outlookcode.com/jumpstart.aspx

"srm" wrote:
On Sep 5, 10:55 am, Sue Mosher [MVP-Outlook]
wrote:
That's possible but the details will depend on:


1) What type of item you're inserting data into
2) If it's a message, whether it's an unsent or received item, the message
format (HTML, plain text, RTF) and whether Word is the email editor


"srm" wrote:
On Sep 5, 8:16 am, srm wrote:
I'm using O2003. I have a simple script that inserts the date and some
text in notes and adds a carriage return /line feed at the end. Need
help on two items.


Can I bold just the date and have the cursor be on the new line on the
left. So for example the result of running the script would be as
follows:


bold09/05/08bold - Sample text
cursor location


Thanks


Shawn


====================


Sub InsertDate()
* * Dim objItem As Object


* * Set objItem = Application.ActiveInspector.CurrentItem
* * * * objItem.Body = objItem.Body & Format(Date, "mm/dd/yy") & " -
Sample text" & vbCrLf


* * Set objItem = Nothing


End Sub


=====================


Had one more question. My code always place the text at the bottom of
the notes. Is there something that will allow be to place the text
where the cursor is located?


Thank you.


Currently I'm inserting the data into Notes in "Contacts" and "Tasks".


I eventually want to expand these items into email messages, but first
wanted to get the Notes working first. When I send emails, I use
Outlook (mostly HTML / Plain text). *I do not use Word as my email
editor.


Thanks


Shawn


Sue:

Thank you.

Shawn
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent text cursor from getting out of a text box on an Outlook 2003 form? Carlos Outlook and VBA 1 July 12th 07 05:32 PM
insert as text (to insert html into email body) Iona Outlook - General Queries 1 July 13th 06 12:10 PM
Cursor on new message window but no text appears when typed? TommieC Outlook - General Queries 0 March 15th 06 06:13 AM
How do I insert a date into the Outlook contact text box BarryL Outlook and VBA 2 January 20th 06 01:33 AM
Outlook 2003 cursor location default Roibn L Taylor Outlook - Using Contacts 2 January 17th 06 08:21 PM


All times are GMT +1. The time now is 11:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.