P
Pradeep
Hello,
I am using Ms Access 2003. Per user requirement, I need to format the data
in a table and paste the same in outlook in such a way the gridlines etc do
not appear.
So i have written code in VBA (MS Access) which takes bits of information,
copies it to an excel sheet, formats it per the requirement specifications
and then moves it to Outlook.
Essentially i am trying to paste data into a outlook mailitem with a word
document viewer. The pre-requisite for this is:
1. Ensure that the Edit messages with Microsoft Word 2003 is selected in
Outlook under the Mail Format tab.
Here is the main segment of code i am using:
Dim objOutlook as object, objMailWindow as object, objInspector as object,
ObjDoc as word.Document, objExcel as object
set objOutlook= CreateObject("Outlook.Application")
set objMailWindow=objOutlook.MailItem(0)
with ObjMailWindow
set objInspector=.GetInspector
set objDoc=objInspector.WordEditor
End with
Now i move bits of information from Ms Access table into an Excel Workbook
object, format it per user requirements and then move it to out look with the
following statement.
objExcel.Selection.Copy
with objDoc
.Activate
.Selection.PasteExcelTable False,False,False
End with
Now the formatting is perfect and it appears as intended in Outllook. But
when the email is sent, the recepient receives it in a different format where
in he sees the grid lines.
How do i avoid it. The user wants to see it as it appears without any grid
lines.
Any help in this regard would be highly appreciated.
Thanks,
Pradeep
I am using Ms Access 2003. Per user requirement, I need to format the data
in a table and paste the same in outlook in such a way the gridlines etc do
not appear.
So i have written code in VBA (MS Access) which takes bits of information,
copies it to an excel sheet, formats it per the requirement specifications
and then moves it to Outlook.
Essentially i am trying to paste data into a outlook mailitem with a word
document viewer. The pre-requisite for this is:
1. Ensure that the Edit messages with Microsoft Word 2003 is selected in
Outlook under the Mail Format tab.
Here is the main segment of code i am using:
Dim objOutlook as object, objMailWindow as object, objInspector as object,
ObjDoc as word.Document, objExcel as object
set objOutlook= CreateObject("Outlook.Application")
set objMailWindow=objOutlook.MailItem(0)
with ObjMailWindow
set objInspector=.GetInspector
set objDoc=objInspector.WordEditor
End with
Now i move bits of information from Ms Access table into an Excel Workbook
object, format it per user requirements and then move it to out look with the
following statement.
objExcel.Selection.Copy
with objDoc
.Activate
.Selection.PasteExcelTable False,False,False
End with
Now the formatting is perfect and it appears as intended in Outllook. But
when the email is sent, the recepient receives it in a different format where
in he sees the grid lines.
How do i avoid it. The user wants to see it as it appears without any grid
lines.
Any help in this regard would be highly appreciated.
Thanks,
Pradeep