+ Reply to Thread
Results 1 to 2 of 2

Editing existing Macro

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Jackson, Mississippi
    MS-Off Ver
    Excel 2003
    Posts
    1

    Editing existing Macro

    I have a macro from work that I would like to edit. It currently uses vbYesNo and I would like to make it vbYesNoCancel. If cancel is selected I would like for it to start over.The original author used a method I am not familiar with. Please help.

    MSG = MsgBox("Was MRA created within 2 days of invoice date?", vbYesNo + vbQuestion)

    'This is Yes
    If MSG = 6 Then
    GoTo Question2
    End If

    'This is No
    If MSG = 7 Then
    displaymsg = "Return to customer"
    Range("D" & 6 + MSGCOUNTER).Formula = displaymsg
    MSGCOUNTER = MSGCOUNTER + 1
    Result = "07"
    Resultdef = "Return Code 07 - Return to Customer...Finalize with code ''07'' with comment ''received item 1234''"
    GoTo FinalQuestion

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Editing existing Macro

    Welcome to the forum.

    Please take a few minutes to read the forum rules, amend your thread title accordingly, and edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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