Thread: [Solved] Outlook / Excel Integration
View Single Post
 
Old 10-17-2016, 09:39 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You have a macro called FleetMatics stored somewhere. Call it with a command line similar to that in my previous message (which assumed it was in the global personal workbook). You can record a macro running the macro to get the part of the command line in quotes.

You cannot simply insert Excel code into the Outlook macro. It is not compatible. You should however be able to run it from Excel using the command line above.

Without access to the Master workbook it is all a bit vague, but looking at it, I would have thought that you should add the command line either immediately after the line
Code:
Set xlSheet = xlWb.sheets(1)
if you want it to prepare the sheet to take the CSV data, or immediately before the line :
Code:
xlWb.Close SaveChanges:=True
to process the sheet after the data is added.

Just make sure yolu have a backup copy of your Master workbook.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote