Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing Cells in Outlook Form based on Excel Document

Status
Not open for further replies.

Grippen

Technical User
Sep 3, 2001
24
GB
Hello,

I have an Outlook "Office Document" Form collecting data from people. The "Office Document" form is based on Excel. Does anyone know how to write data to cells in the form from data in another Form.

Putting it another way, I want to do as the code below does, but the data is now in a "Office Document" form not an Excel Spreadsheet.

Sub Export data
Set oExcel = Item.Application.CreateObject("Excel.Application")
oExcel.Workbooks.open(C:\Data.xls")
oExcel.Visible = True
oExcel.Workbooks.Add
Set oSheet = oExcel.Workbooks(1).Worksheets("Sheet1")
oSheet.Activate
set oCellData = oSheet.Range("A1")
oCellDat.Value = "Data I want to put in"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top