+ Reply to Thread
Results 1 to 4 of 4

Symbol - VBA reference - Need help!

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    41

    Symbol - VBA reference - Need help!

    Hi guys,

    i have a kind of a strange issue here. I want to write a short macro which should perform some checks in a couple of excel sheets that i'll be receiving. I got an example of the data and instead of yes or nos, ones or zeros it contains ticks and crosses. I'm attaching an example with the two symbols. My question is, first how do i write a symbol like this in excel (i searched through the symbol list but without success) and second and more important how do i refer to these in VBA - e.g. if cell A1 = "the strange tick" --> B2 = "VALID" elseif A1="strange cross" B2 is "NOT VALID"

    Thanks a lot,

    regardsExp.xlsx

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Symbol - VBA reference - Need help!

    You can write û and ü with font Wingdings.
    Then use them as any other letter.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    Austria
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Symbol - VBA reference - Need help!

    Hi zbor, thanks for the quick reply. I wrote u with windings and it gives me a tick. However, its not the same tick and thus its not equal to the one i have. I guess it will be the same with the windings cross

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Symbol - VBA reference - Need help!

    Hi,

    Quote Originally Posted by mitko007 View Post
    first how do i write a symbol like this in excel (i searched through the symbol list but without success)
    This kind of symbol is unique among different fonts, the quickest way to mimic this symbol is to open the workbook contained this symbol then do copy paste operation, it will copy everything, including the fontname, etc.


    Quote Originally Posted by mitko007 View Post
    and second and more important how do i refer to these in VBA - e.g. if cell A1 = "the strange tick" --> B2 = "VALID" elseif A1="strange cross" B2 is "NOT VALID"
    Since this is unicode character, we can use the AscW() function to get the code, I write an UDF to do this :

    Please Login or Register  to view this content.
    So, based on you uploaded workbook, the formula to get the code of cell C2 is :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    it will return 10007

    and to do the checking :
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards

+ 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. Checking for a symbol then copying text if it symbol is present
    By fedorafreak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2013, 08:54 PM
  2. Tick symbol & cross symbol in a cell
    By sivdin in forum Excel General
    Replies: 2
    Last Post: 02-17-2011, 08:58 AM
  3. Replies: 5
    Last Post: 07-13-2006, 07:45 PM
  4. $ Symbol
    By Big Rick in forum Excel General
    Replies: 3
    Last Post: 09-20-2005, 02:05 PM
  5. Replies: 2
    Last Post: 05-02-2005, 08:06 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