+ Reply to Thread
Results 1 to 6 of 6

Dynamic formula in VBA giving "FALSE" as return

  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Dynamic formula in VBA giving "FALSE" as return

    I have a UserForm that is entering data into the last empty row in a data set. I want it to enter this formula into column "I" in the last empty row as well.

    The formula I want to enter is:
    Please Login or Register  to view this content.
    So I used this:
    Please Login or Register  to view this content.
    But it's returning "FALSE" which it shouldn't be. What am I missing?

  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
    44,091

    Re: Dynamic formula in VBA giving "FALSE" as return

    Suggest that you do it this way:

    Please Login or Register  to view this content.

    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
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Dynamic formula in VBA giving "FALSE" as return

    Thanks. Do I replace
    Please Login or Register  to view this content.
    with this?


    Quote Originally Posted by TMS View Post
    Suggest that you do it this way:

    Please Login or Register  to view this content.

    Regards, TMS

  4. #4
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Dynamic formula in VBA giving "FALSE" as return

    Ok I got it to work, but I need the 132 to change based on whatever row it's entering the data into. So if it's row 140, it'll be

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Dynamic formula in VBA giving "FALSE" as return

    Got it:

    Please Login or Register  to view this content.

  6. #6
    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
    44,091

    Re: Dynamic formula in VBA giving "FALSE" as return

    Please Login or Register  to view this content.

+ 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] Mod to a working formula to return zero instead of "false"
    By hammer2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2015, 04:27 AM
  2. [SOLVED] Check next row if value is, "FALSE," if "TRUE," return specified value from this row
    By Dave_Doodle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-19-2015, 10:18 AM
  3. How can I get a value to return "Y" OR "N" instead of true or false
    By bunnyfrostr in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-04-2014, 05:44 PM
  4. VLookup to return "true" or "false"
    By Sph01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2011, 11:10 AM
  5. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  6. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 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