+ Reply to Thread
Results 1 to 9 of 9

Getting compile error 'Wrong number of argument or invalid property assignment'

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Getting compile error 'Wrong number of argument or invalid property assignment'

    Hi,
    I'm getting compile error 'wrong number of argument or invalid property assignment' on the first line word 'range'.
    Please Login or Register  to view this content.
    The code is:

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you.
    Sincerely,

    mso3

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    should be

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    Hi Andy Pope,
    Thank you. Now the error has gone but another error 'compile error 13 time mismatch occur on line:

    Please Login or Register  to view this content.
    The code is:

    Please Login or Register  to view this content.
    Solution please!

    Thank you.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    The is just gibberish.

    You can not use multple references when using Cells object. You need to use Range object.
    Also you can not just use a single mention of a column.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    Hi Andy Pope,
    Thank you for guidance. Now the error has gone. I have made necessary changes as per my knowledge.

    Please Login or Register  to view this content.
    Please go through it and suggest me a correction.

    Thank you.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    You changed object cell to be rngCell but have not updated that code.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    Hi Andy Pope,
    Thank you. I got my mistake. Now I'm getting compile error 'syntax error' on the line:

    Please Login or Register  to view this content.
    I think after this revision the problem will be solved.

    Thanking you.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    I assume you code should be,

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting compile error 'Wrong number of argument or invalid property assignment'

    Hi Andy Pope,
    Thank you. It's working fine.

+ 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. Compile Error: Wrong number of arguments or invalid property assignment .... help!
    By powercell99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2013, 03:30 PM
  2. [SOLVED] Compile Error: Wrong number of arguments or invalid property assignment
    By bobmaucher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2013, 12:41 PM
  3. Replies: 3
    Last Post: 04-28-2010, 05:54 PM
  4. Error: Wrong number of argument or invalid property assignment?
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 01:35 PM
  5. Replies: 1
    Last Post: 02-17-2006, 12:10 PM

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