+ Reply to Thread
Results 1 to 3 of 3

Object variable or With block .... sending e-mail CDO

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Object variable or With block .... sending e-mail CDO

    Hi,

    on one forum I found a maco to send e-mail but it doesn't work. I get an error "Run-time 91 Object variable or With block variable not set"
    How can I fix it ?

    Thanks for any help !

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Object variable or With block .... sending e-mail CDO

    MI should be declared as String, not Object.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Object variable or With block .... sending e-mail CDO

    Thank's works perfect !

    Can I ask one more question is it possible to send and attach the same file with this macro inside ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 08-22-2014, 03:55 AM
  2. Replies: 1
    Last Post: 07-24-2013, 02:45 PM
  3. Replies: 6
    Last Post: 12-21-2012, 08:03 AM
  4. Object variable or With block variable not set Error during sorting program
    By BlahBlahBlahBlahBlah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2012, 07:57 AM
  5. Object Variable or With Block Variable Not Set- Error on Another User Machine
    By dailem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2010, 09:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1