+ Reply to Thread
Results 1 to 4 of 4

Function call on left side of assignment must return Variant or Object.

  1. #1
    Registered User
    Join Date
    10-16-2018
    Location
    Latvia
    MS-Off Ver
    2016
    Posts
    6

    Function call on left side of assignment must return Variant or Object.

    so the code was created to export files from excel to text file( the program also makes the txt file)i have been trying to figure out this issue by myself for a couple of hours and i cannot figure it out, Sadly i cannot attach the excel file because it surpasses the upload limit so i copied the code here.Thank you in advance.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Function call on left side of assignment must return Variant or Object.

    Declare all the variables properly and use Long datatype instead of Integer for row and column variable.

    To avoid the error you are getting, remove the "=" from the MsgBox line. That should be written as...

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    10-16-2018
    Location
    Latvia
    MS-Off Ver
    2016
    Posts
    6

    Re: Function call on left side of assignment must return Variant or Object.

    Thank you very much

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Function call on left side of assignment must return Variant or Object.

    You're welcome!

    If that takes care of your original question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.


    You may also say thanks to those who have put their time and efforts to help you in this forum by clicking the Add Reputation link under their posts, another way to say thanks.

+ 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] Function call on left-hand side error. Simple msgbox
    By DJDRU in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2016, 10:48 AM
  2. function call on left-hand side of assignment must return Variant or Object
    By anandrajagopal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2015, 02:44 PM
  3. [SOLVED] How can I change Chart.Axes(xlValue) from left side to right side ?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-15-2014, 02:18 PM
  4. [SOLVED] SUMIF function but the SUM RANGE is on the LEFT SIDE of the CRITERIA.
    By Jarvin24 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2014, 11:02 PM
  5. Replies: 1
    Last Post: 12-21-2013, 09:54 AM
  6. [SOLVED] Function Call on left-hand side... error
    By SeanDamnit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 07:08 AM
  7. Call function must return variant or object
    By BCITgirl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2010, 03:23 AM

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