+ Reply to Thread
Results 1 to 4 of 4

"Missing argument" when calling program from button

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    Atlanta, GA
    MS-Off Ver
    MS365, vsn 16.0.17909.42302
    Posts
    45

    "Missing argument" when calling program from button

    I don't why, but the compiler keeps screaming about this macro when I call it from a button. It used to work, and I'm not sure what changed. Why is an argument required simply because I'm using a button now? See the picture. The Sub MainFormattingMacro() line is highlighted if I hit Debug.
    Attached Images Attached Images

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: "Missing argument" when calling program from button

    Not sure what you would have us do with a picture of an error. We (at least I) can't see the code, let alone diagnose the problem with it.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-26-2011
    Location
    Atlanta, GA
    MS-Off Ver
    MS365, vsn 16.0.17909.42302
    Posts
    45

    Re: "Missing argument" when calling program from button

    I was somehow able to revert back to my previous "working" version of the macro. Let me try to add the new functionality little by little until it breaks. Thanks.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,329

    Re: "Missing argument" when calling program from button

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Program "New Entry" button to prompt when there is a duplicate data.
    By ariffinaldo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:37 PM
  2. Program excel command button to "save, lock and email" either with a macro, or VB.
    By testing the water in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2013, 11:26 AM
  3. Replies: 1
    Last Post: 05-13-2008, 01:36 AM
  4. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM
  5. Replies: 1
    Last Post: 01-30-2006, 06:10 PM

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