+ Reply to Thread
Results 1 to 7 of 7

Reporting the less than sign in VBA

  1. #1
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Reporting the less than sign in VBA

    So I have a table and some of the formulas yield a number that is less than the number (<1), I want this number to be reported over to my textbox but the less than sign has to be dim as string and the 1 has to be dim as long. Is there a way around having to separate these out or can I create a rule that will report the number <1?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Reporting the less than sign in VBA

    Why do the '<' and '1' need to be dimmed as anything?

    Can't you just put the value from the cell directly into the textbox?

    Or if you must use a variable use a string for the whole thing.
    Last edited by Norie; 07-10-2017 at 11:15 AM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Reporting the less than sign in VBA

    The numbers change based on different values so I am dimming the range not necessarily the <1, but the properties are sometimes just long so it returns a mismatch if the value happens to add the <. These are percentiles, so for instance most of the time the number is just a number PR= 50, but when a very low score is obtained then the percentile drops to <1.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Reporting the less than sign in VBA

    I'm not following, I though you wanted to 'report' a value to a texbox which I assumed meant populating a textbox with a value.

    Is there something else happening?

  5. #5
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Reporting the less than sign in VBA

    I am new at this...I think I was over complicating my code due to inexperience, my apology.
    Last edited by JennaM; 07-10-2017 at 12:36 PM.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Reporting the less than sign in VBA

    Where do you want to insert the contents of the cell?

    If you wanted to insert the contents of a cell in a textbox you could use this,
    Please Login or Register  to view this content.
    and to put the value of one cell in another.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-03-2017
    Location
    SC
    MS-Off Ver
    2016
    Posts
    27

    Re: Reporting the less than sign in VBA

    Thank you, this works, I appreciate your help! I am having fun learning VBA but clearly I have much to learn!!

+ 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] Replace slash sign to dash sign
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-28-2017, 08:17 AM
  2. Excel Help - Sign In & Sign Out Form
    By xBadBoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2016, 03:42 PM
  3. Trying to create Sign in Sign out sheet with time stamp
    By InNeedOfHelp88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2015, 07:11 PM
  4. [SOLVED] Employee sign-in userform - Multiple sign ins?
    By Battletoads in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2014, 10:57 AM
  5. Replies: 3
    Last Post: 03-13-2013, 01:20 AM
  6. Decimal Sign Replaced with ; Sign
    By lopiner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2009, 08:47 AM
  7. XL invoice replace the dollar sign with euro sign
    By Pamela casares in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-16-2005, 04:25 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