+ Reply to Thread
Results 1 to 4 of 4

LEFT function error (excelVBA) - Wrong number of arguments or invalid property assignment

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    87

    LEFT function error (excelVBA) - Wrong number of arguments or invalid property assignment

    Hi

    im getting the above error when i use the left function to extract characters in my code and
    think its very strange. has anyone else had this problem?

    Heres is an excerpt of a select case statement where its used. The code is part of a worksheet change routine
    and the target cell value has already been checked to make sure its not blank as shown, so i dont know why i get
    the errors. I tried the RIGHT function which doesnt throw up an error but is unsuitable for this task.

    All help is appreciated.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: LEFT function error (excelVBA) - Wrong number of arguments or invalid property assign

    I think you must have other variable/routine/object with name Left. If you change code to use VBA.Left does it work?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: LEFT function error (excelVBA) - Wrong number of arguments or invalid property assign

    Izandol...youre a genius!

    Thank you that worked perfectly. Im using reflections for regis graphics (virtual terminal software), but there is no other variable named left
    The only occurrence of "Left" is as a substring of one of the reflections commands - "rcVtLeftKey". Could this by itself be the culprit?

    Have a nice weekend

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: LEFT function error (excelVBA) - Wrong number of arguments or invalid property assign

    You are welcome.

    There must be something else that has exact name Left. Perhaps you may search with Edit - Find?

+ 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] wrong number of arguments invalid or property assignment error
    By uduyt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2013, 07:40 PM
  2. 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
  3. [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
  4. wrong number of arguments invalid or property assignment error
    By uduyt in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2012, 08:39 AM
  5. Code error “wrong number of arguments or invalid property assignment”
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 06:16 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