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

Use field in outlook custom form to populate excel sheet



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 11th 06, 07:54 PM posted to microsoft.public.outlook.program_forms
Jade
external usenet poster
 
Posts: 3
Default Use field in outlook custom form to populate excel sheet

Hello everyone,

I have an excel sheet ("Test") which in range ("D3") I would like to
add the field ("txtName") from a custom outlook calendar form
("Page2"). I realize I'm missing a step. Can someone lend me some
assistance?

Thanks...



Sub cmdGetExcel_Click()
dim myIns,strName
strName="C:\Documents and Settings\Jackie\My Documents\OutlookTest.xls"
set myIns=item.getinspector
set myPage=myIns.modifiedformpages("Page2")
set txtName=myPage.Controls("txtName")

set appExcel=createobject("Excel.Application")
appExcel.workbooks.open (strName)
appExcel.application.visible=true
set wkb=appExcel.activeworkbook
set wks=wkb.Worksheets("Sheet1")
wks.activate
set rng=wks.Range("D3")
rng.value=item.userproperties("txtName")
Set appExcel = Nothing
End Sub

 




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
Problem when reading closing Outlook form that uses Excel sheet [email protected] Outlook - Using Forms 0 November 9th 06 03:34 PM
Linking a custom form field to an Excel or SharePoint List DougD Outlook - Using Contacts 7 October 27th 06 07:42 PM
How do I Autopopulate an Outlook form from an Excel Sheet? AttyBhai Outlook - Using Forms 1 September 19th 06 01:18 PM
Populate Company field from Contact field in custom task form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 07:37 PM
Can custom form data populate access database jbtempe Outlook - Using Forms 1 January 20th 06 03:02 PM


All times are GMT +1. The time now is 09:54 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.