Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default save and email button

Simon,

Quickly, thanks for looking at this for me. I figured out the things that I
had wrong in my code.
Basically, I had the section of code related to the set.fields line
commented out (as I'd copied it from Ron's site) AND had the file path's
coded as c:/ instead of c:\) once I cleaned these up (and entered my smtp
info correctly!) it works fine.

Thanks again!

Steve

"Steve E" wrote:

Hi Simon,

Thanks for looking at this for me. I chose to plagerize Ron'd code for the
CDOSYS methodology because I don't think that I have control / knowledge
regarding the email app that my customers (users) are using and liked the
idea that he put forward... and I hate to start compromising at this early
point... or did I miss-understand the point of Ron's code? This is what I am
trying to work from: http://www.rondebruin.nl/cdo.htm
but adding the code to disable the save and saveas menu and toolbar options
to force the 'registration' via email.
Do you think I should take a step back and just try and make it work via
Outlook first? (or is that even a step back - I thought it made it more
complicated since I don't have control over what versions of Outlook are in
my user group?

Help!!!

Steve



"Simon Lloyd" wrote:


The only problem i can see when i tried your code was that you dont
physically open a mail programm such as outlook, i think this might be
why it gives you an automation problem...the rest of your code seemed
to work fine!

Hope this helps, as i am no expert by far!

Regards,
Simon

Steve E wrote:
*

With the "Sub SaveAndEmailtoRegisterQuote()" assigned to the button
on my
worksheet as a macro.

I also set up a c:\quotes\ directory

I followed RdB's hint about setting the reference to Microsoft
Outlook 11.0
Object Library (this is the version that matches my Excel version in
the
reference list).

When I run the code (click the button) I get the following:

"System Error: &H80040220 (-2147220960)"

Anyone feel like helping this newbie figure out where the heck he's
gone
wrong?

Thanks in advance,

Steve *




--
Simon Lloyd
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message2502984.html


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
Disable save, save as, but allow save via command button TimN Excel Programming 10 September 1st 06 07:05 PM
How to diasble save and save as menu but allow a save button hon123456 Excel Programming 1 June 12th 06 09:50 AM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
save button in excel to save one of the worksheets with a cell value as its name Colin[_9_] Excel Programming 2 September 21st 04 11:28 PM


All times are GMT +1. The time now is 11:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"