+ Reply to Thread
Results 1 to 4 of 4

Compile Error : Wrong no of arguments or invalid property assigned.

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    Swindon, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Compile Error : Wrong no of arguments or invalid property assigned.

    Hi,

    I have just started work in a small factory and there they used to use an excel sheet for their plant maintenance program.
    I am reviving this program as the person who made the file has left long time and hence the file not been used.
    For me its quite complicated as it has VBA prgramming but I am still using it with some success.
    Only thing i have noticed that there is a macro i noticed which is to Open and close work orders not seems to be working.
    the error is coming which i attached.
    Can someone look into this file and see if the can sort the macros out. This would be really helpful.

    here is a link to file itself.

    https://dl.dropboxusercontent.com/u/...89/_Master.xls

    best reg
    KK
    Attached Images Attached Images
    Last edited by kkqazi; 11-15-2015 at 07:04 AM. Reason: Advise from Moderator

  2. #2
    Forum Contributor
    Join Date
    06-04-2013
    Location
    Moscow
    MS-Off Ver
    Office 365
    Posts
    100

    Re: Help on Macro

    the procedure "CreateWO" does not have any arguments.
    Please Login or Register  to view this content.
    replace with:
    Please Login or Register  to view this content.
    or calling this procedure:
    Please Login or Register  to view this content.
    if you want calling her without any arguments
    I'm sorry my english...

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Help on Macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Registered User
    Join Date
    05-19-2009
    Location
    Swindon, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Help on Macro

    Thanks A lot for your reply. It did work for a message box to pop up. When I run macro OPencloseWO, then now I see this message pop up which is the way it should done I believe.

    But when I click yes the errors start coming up.
    I attached the picture.
    Much appreciated.

    reg
    KKErrors.jpg

+ 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] Define variable in macro than calling that macro inside another macro
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2015, 10:58 AM
  2. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  3. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  4. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  5. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  6. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM
  7. Macro calling another Macro: "The macro 'Personal.xls!FindChar"
    By William Benson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2005, 09:05 AM

Tags for this Thread

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