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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem using Myitem.UserProperties.Find("string")



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 3rd 07, 03:37 AM posted to microsoft.public.outlook.program_vba
John E.
external usenet poster
 
Posts: 37
Default Problem using Myitem.UserProperties.Find("string")

I have a macro programmed in VBA to fill a word table with fields of data
from outlook journal entries. I am using the approach Sue Mosher describes
in her book Listing 22.11 on page 509, which uses the following code syntax
to put data into row x and column y of a word table:
objTable.Cell(x,y).Range.InsertAfter _
Myitem.UserProperties.Find("string"), where in my case "string" is used
as a user defined value that is bound to a textbox.
For bound values that are type of Text, this works fine. My problem is that
oone of the bound values to one of the textboxes is a Keyword and another is
type Yes/No.
Can anyone advise me as to how to change the code syntax on
MyItem.UserProperties to pick up the value of the Keyword or Yes/No value and
insert it into the cell of the WORD table?????

--
John E.
Ads
  #2  
Old January 3rd 07, 01:47 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Problem using Myitem.UserProperties.Find("string")

Either add a little code to set a return "Yes" and "No" strings for the appropriate value or use a checkbox form field as discussed on page 502.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John E." wrote in message ...
I have a macro programmed in VBA to fill a word table with fields of data
from outlook journal entries. I am using the approach Sue Mosher describes
in her book Listing 22.11 on page 509, which uses the following code syntax
to put data into row x and column y of a word table:
objTable.Cell(x,y).Range.InsertAfter _
Myitem.UserProperties.Find("string"), where in my case "string" is used
as a user defined value that is bound to a textbox.
For bound values that are type of Text, this works fine. My problem is that
oone of the bound values to one of the textboxes is a Keyword and another is
type Yes/No.
Can anyone advise me as to how to change the code syntax on
MyItem.UserProperties to pick up the value of the Keyword or Yes/No value and
insert it into the cell of the WORD table?????

--
John E.

  #3  
Old January 3rd 07, 03:33 PM posted to microsoft.public.outlook.program_vba
John E.
external usenet poster
 
Posts: 37
Default Problem using Myitem.UserProperties.Find("string")

Thanks for response, Sue.
Understand about the Yes/No field, but do you have any suggestion as to how
I get the Keyword values into th cell of the word table...doesn't appear that
UsserProperties.Find("string") will work even the the Keywords are text.
--
John E.


"Sue Mosher [MVP-Outlook]" wrote:

Either add a little code to set a return "Yes" and "No" strings for the appropriate value or use a checkbox form field as discussed on page 502.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John E." wrote in message ...
I have a macro programmed in VBA to fill a word table with fields of data
from outlook journal entries. I am using the approach Sue Mosher describes
in her book Listing 22.11 on page 509, which uses the following code syntax
to put data into row x and column y of a word table:
objTable.Cell(x,y).Range.InsertAfter _
Myitem.UserProperties.Find("string"), where in my case "string" is used
as a user defined value that is bound to a textbox.
For bound values that are type of Text, this works fine. My problem is that
oone of the bound values to one of the textboxes is a Keyword and another is
type Yes/No.
Can anyone advise me as to how to change the code syntax on
MyItem.UserProperties to pick up the value of the Keyword or Yes/No value and
insert it into the cell of the WORD table?????

--
John E.


  #4  
Old January 3rd 07, 04:12 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Problem using Myitem.UserProperties.Find("string")

See http://support.microsoft.com/kb/201099; probably the best approach is to go through the control on the form that displays the keywords field.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"John E." wrote in message ...
do you have any suggestion as to how
I get the Keyword values into th cell of the word table...doesn't appear that
UsserProperties.Find("string") will work even the the Keywords are text.


"John E." wrote in message ...
I have a macro programmed in VBA to fill a word table with fields of data
from outlook journal entries. I am using the approach Sue Mosher describes
in her book Listing 22.11 on page 509, which uses the following code syntax
to put data into row x and column y of a word table:
objTable.Cell(x,y).Range.InsertAfter _
Myitem.UserProperties.Find("string"), where in my case "string" is used
as a user defined value that is bound to a textbox.
For bound values that are type of Text, this works fine. My problem is that
oone of the bound values to one of the textboxes is a Keyword and another is
type Yes/No.
Can anyone advise me as to how to change the code syntax on
MyItem.UserProperties to pick up the value of the Keyword or Yes/No value and
insert it into the cell of the WORD table?????


 




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
"save picture as" = error- "system cannot find file specified" Joe P. Outlook Express 3 November 22nd 06 07:52 AM
"Lost" UserProperties P Hoppe Outlook and VBA 0 November 8th 06 10:36 PM
How do I get OUtlook to stop inserting a "1" in the dial string? Jlashnits Outlook - Using Contacts 2 September 5th 06 03:23 PM
Problem with Company names starting with "LA" or "LE" Phil_R Outlook - Using Contacts 0 March 31st 06 11:31 PM
Problem with Company names starting with "LA" or "LE" Phil_R Outlook - Using Contacts 0 March 31st 06 11:30 PM


All times are GMT +1. The time now is 01:02 PM.


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