+ Reply to Thread
Results 1 to 2 of 2

why My VBA code just does not work

  1. #1
    Registered User
    Join Date
    09-10-2020
    Location
    Beijing China
    MS-Off Ver
    office 365
    Posts
    1

    why My VBA code just does not work

    I am new to VBA for outlook, as I want to automate the process of when I send out an appointment, the "send" event would trigger's my code to do something else. I wrote the simple code as follows, but it just does not work as I thought,
    I keep getting errors "procedure declaration does not match description of event or procedure having the same name". could anyone help me with this? what is the problem




    Please Login or Register  to view this content.
    Last edited by davesexcel; 09-10-2020 at 06:21 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,280

    Re: why My VBA code just does not work

    Remove the ByVal.
    Remember what the dormouse said
    Feed your head

+ 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. [SOLVED] Setting Print area with VBA code on active sheet - Can't get my code to work
    By hans302 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2017, 05:07 AM
  2. Testing single code, work fine. Put multiple codes in one sheet, one code doesn't work.
    By MayDay1988 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2017, 06:14 PM
  3. Code will not work when followed by more code (does work when stepped through)
    By Cashgenerator in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-03-2015, 10:12 AM
  4. [SOLVED] Need help with VBA code. Tons of code seperated in two, second part of code doesn't work.
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 11-30-2015, 11:46 AM
  5. Replies: 9
    Last Post: 08-30-2013, 07:49 AM
  6. Replies: 1
    Last Post: 08-14-2013, 12:01 PM
  7. [SOLVED] hELP FOR MY PROJECT (IN PROJECT SHEET CODE NOT WORK,, OUTSIDE THAT CODE WORK)
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-06-2013, 06:53 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