Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / October 2006

Tip: Looking for answers? Try searching our database.

Linking a custom form field to an Excel or SharePoint List

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DougD - 27 Oct 2006 15:05 GMT
Is there any way to create a lookup field within Outlook that uses for its
content an Excel spreadsheat or SharePoint list?  I have a SharePoint list
that contains a "Client Account Field" to which many of the contacts within
Outlook are associated.  

It would be much easier for the user to have lookup field from which they
can select the proper Client Account.  This could be built as a choice field
but that would have to be updated each time a new client account is added or
amended.  A link would be a much better solution if that is possible.
Signature

DougD

DougD - 27 Oct 2006 15:08 GMT
I forgot to mention I have Outlook 2003 SP2 Professional Edition.  
Signature

DougD

> Is there any way to create a lookup field within Outlook that uses for its
> content an Excel spreadsheat or SharePoint list?  I have a SharePoint list
[quoted text clipped - 5 lines]
> but that would have to be updated each time a new client account is added or
> amended.  A link would be a much better solution if that is possible.
Sue Mosher [MVP-Outlook] - 27 Oct 2006 15:22 GMT
Yes, by writing code behind a custom form or in an Outlook add-in to read the information from the data source and use it to populate a list or combo box that offers choices. The user would, of course, have to be able to connect to the data source.

Signature

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
 

> Is there any way to create a lookup field within Outlook that uses for its
> content an Excel spreadsheat or SharePoint list?  I have a SharePoint list
[quoted text clipped - 5 lines]
> but that would have to be updated each time a new client account is added or
> amended.  A link would be a much better solution if that is possible.
DougD - 27 Oct 2006 16:49 GMT
Can you provide any guidance on how to do this or references/examples I can
use to get me started?
Signature

DougD

> Yes, by writing code behind a custom form or in an Outlook add-in to read the information from the data source and use it to populate a list or combo box that offers choices. The user would, of course, have to be able to connect to the data source.
>
[quoted text clipped - 7 lines]
> > but that would have to be updated each time a new client account is added or
> > amended.  A link would be a much better solution if that is possible.
Sue Mosher [MVP-Outlook] - 27 Oct 2006 17:59 GMT
The basics of filling a list on a custom form are covered at http://www.outlookcode.com/d/formcontrols.htm#listcombo . Getting data from Excel is a simple matter of opening the worksheet and iterating the right rows; some of the import samples at http://www.outlookcode.com/d/customimport.htm should give you those basics.

Retrieving data from SharePoint is something I don't have a good VBScript sample for, but I'm sure Google can turn up one for you.

BTW, Microsoft InfoPath does a lot of this out of the box and is definitely the future of intra-organization forms.

Signature

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
 

> Can you provide any guidance on how to do this or references/examples I can
> use to get me started?
[quoted text clipped - 10 lines]
>> > but that would have to be updated each time a new client account is added or
>> > amended.  A link would be a much better solution if that is possible.
DougD - 27 Oct 2006 18:53 GMT
Thanks much Sue.  That provides me with a wealth of information.

However, unless I missed it, it seems like these references are all talking
about importing data into (or exporting data out of) Outlook from (or to) an
Excel spreadsheet.   That isn't exactly what I'm interested in.

I want to permanently link an Outlook custom form field to a specific column
in an existing spreadsheet and create a lookup field (drop down menu) in
Outlook that uses the values from that spreadsheet column.  Is that included
here and I just missed it?  What custom form field type would be the basis to
create the drop down menu?
Signature

DougD

> The basics of filling a list on a custom form are covered at http://www.outlookcode.com/d/formcontrols.htm#listcombo . Getting data from Excel is a simple matter of opening the worksheet and iterating the right rows; some of the import samples at http://www.outlookcode.com/d/customimport.htm should give you those basics.
>
[quoted text clipped - 16 lines]
> >> > but that would have to be updated each time a new client account is added or
> >> > amended.  A link would be a much better solution if that is possible.
Sue Mosher [MVP-Outlook] - 27 Oct 2006 19:25 GMT
You missed it: The only way to have such a permanent link is to build in that functionality with your own custom code.

I suggested the Excel samples as a way of getting you up to speed on writing Excel code in case you hadn't done that before. Nowhere did I suggest that export/import itself would be part of your solution.
Signature

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
 

> Thanks much Sue.  That provides me with a wealth of information.
>
[quoted text clipped - 13 lines]
>>
>> BTW, Microsoft InfoPath does a lot of this out of the box and is definitely the future of intra-organization forms.

>>    
>> > Can you provide any guidance on how to do this or references/examples I can
[quoted text clipped - 11 lines]
>> >> > but that would have to be updated each time a new client account is added or
>> >> > amended.  A link would be a much better solution if that is possible.
DougD - 27 Oct 2006 19:42 GMT
Ok, thanks again, I'm with you now.  As a relative novice to writing code,
this seems a bit overwhelming.  I'm stuggling with where to start.
Signature

DougD

> You missed it: The only way to have such a permanent link is to build in that functionality with your own custom code.
>
[quoted text clipped - 32 lines]
> >> >> > but that would have to be updated each time a new client account is added or
> >> >> > amended.  A link would be a much better solution if that is possible.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.