+ Reply to Thread
Results 1 to 15 of 15

Making greater than or equal to as part of the header string

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Making greater than or equal to as part of the header string

    Hi,

    I have a header string that i want to have greater than or equal to inserted into a cell via vba. But i am having issues.


    For example: I would like to have the following in cell A1:
    "X ≥ 30"

    But i cant seem to get the get it to work.............again this is to be done via VBA..........

    any one know how?

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Making greater than or equal to as part of the header string

    Not sure if this is what you're looking for:

    Sub welches101()
    Range("A1").Value = "X >= 30"
    End Sub

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Re: Making greater than or equal to as part of the header string

    john thanks but not that is not what i am looking for.......i am looking for the greater than on top of the equal sign..........not beside it.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Making greater than or equal to as part of the header string

    I think you'd have to find the associated ASCII symbol. I had no luck. If you do then it would be something like this.
    Sub welches101()
    Range("A1").Value = "X" & chr(..) & "30"
    End Sub

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Re: Making greater than or equal to as part of the header string

    so you have the same problem that i did...........makes me feel somewhat better but there has to be a way to do this..........right?

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Making greater than or equal to as part of the header string

    Quote Originally Posted by welchs101 View Post
    so you have the same problem that i did...........makes me feel somewhat better but there has to be a way to do this..........right?
    Should be. I can do it manually. There is a symbol for that in the selection.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,661

    Re: Making greater than or equal to as part of the header string

    See if this works
        [a1] = "X" & ChrW(8807) & "30"

  8. #8
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Re: Making greater than or equal to as part of the header string

    jindon, thanks but that does not work either. It puts a question mark "?"..........

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,661

    Re: Making greater than or equal to as part of the header string

    How about 8805?

  10. #10
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Re: Making greater than or equal to as part of the header string

    nope......i am enclosing the macro i am using to test this........its fairly simple but i could be doing somthing wrong thus the reason for the post.
    Attached Files Attached Files

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

    Re: Making greater than or equal to as part of the header string

    Did you test the suggestion in fact?
    Range("A1").Value = "X" & ChrW(8805) & "30"
    Msgbox does not understand unicode.

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Making greater than or equal to as part of the header string

    Range("A1").Value = "X" & ChrW(8805) & "30"
    Works for me!

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,661

    Re: Making greater than or equal to as part of the header string

    You can't show that in msgbox.

    Have you tried
    [a1] = "X" & ChrW(8805) & "30"

  14. #14
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,677

    Re: Making greater than or equal to as part of the header string

    i knew i was doing something wrong........

    that was it.........i cant use msgbox to identify what i should do................

    thanks all................i did as you "litterally" suggested and it worked.

    sorry for the confusion

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,661

    Re: Making greater than or equal to as part of the header string

    OK and thanks for the rep.

    Just for your info.

    8804 should give you smaller than symbol. ≤

+ 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] How to do if greater than or equal to
    By Joah in forum Excel General
    Replies: 4
    Last Post: 06-15-2012, 12:57 AM
  2. greater equal less than
    By ianm34 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2010, 12:17 PM
  3. Greater than or equal to
    By xned in forum Excel General
    Replies: 2
    Last Post: 02-14-2009, 03:12 AM
  4. Greater than or equal to
    By braedan51 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2007, 12:39 PM
  5. equal to and greater than
    By Saz in forum Excel General
    Replies: 0
    Last Post: 08-30-2006, 04:59 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