+ Reply to Thread
Results 1 to 6 of 6

how to use ฿ currency symbol in VBA code

  1. #1
    Registered User
    Join Date
    05-18-2016
    Location
    india
    MS-Off Ver
    2007
    Posts
    34

    how to use ฿ currency symbol in VBA code

    How can I use "฿" in VBA code

    EG:.
    Range("Artwork_Anchor") = Mid(Cells((Dte) + 2, 1).Value, InStrRev(Cells((Dte) + 2, 1).Value, "$AUD") + 4)

    So instead of $ i want ฿

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: how to use ฿ currency symbol in VBA code

    Hi

    The ฿ is the Unicode Character 'THAI CURRENCY SYMBOL BAHT' (U+0E3F)

    Ex.:

    Please Login or Register  to view this content.
    (Just an example of how to use the character, it would probably make more sense in this case to use a custom format and a number value.)

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: how to use ฿ currency symbol in VBA code

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  4. #4
    Registered User
    Join Date
    05-23-2017
    Location
    US
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: how to use ฿ currency symbol in VBA code

    Just used the ChrW(&HE3F)in my code. Worked like a charm. Thanks!

  5. #5
    Registered User
    Join Date
    10-12-2021
    Location
    Philadelphia, Pennsylvania
    MS-Off Ver
    Most recent
    Posts
    4

    Re: how to use ฿ currency symbol in VBA code

    I have been able to print the Baht sign using the formula described above (Range("A1").Value = ChrW(&HE3F) & "123". But my problem is different in that I would like to automate the REMOVAL of the Baht sign from spreadsheets sent from Thailand. I need to do this because I own a restaurant there and I get the daily sales and expenses every day but I can't consolidate those worksheets to get weekly, monthly and annual numbers unless I remove it because Excel does not recognize it. I can remove it manually from each individual worksheet by copying the Baht sign from the worksheet and removing it using "Find and Replace" but I would like to automate the technique, if possible, to save myself some time. Unfortunately, the macro doesn't work because the VBA doesn't recognize the character and trying to replace it in the code doesn't work either. (It replaces the Baht sign with a "?" and so the code won't run). I have tried to use the unicode but that doesn't work either. Can someone suggest a method for removing the Baht sign from the spreadsheets with a macro or some VBA code? Is it even possible? I would appreciate any ideas.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: how to use ฿ currency symbol in VBA code

    Quote Originally Posted by etpho View Post
    I have been able to print the Baht sign using the formula described above (Range("A1").Value = ChrW(&HE3F) & "123". But my problem is different in that I would like to automate the REMOVAL of the Baht sign from spreadsheets sent from Thailand. I need to do this because I own a restaurant there and I get the daily sales and expenses every day but I can't consolidate those worksheets to get weekly, monthly and annual numbers unless I remove it because Excel does not recognize it. I can remove it manually from each individual worksheet by copying the Baht sign from the worksheet and removing it using "Find and Replace" but I would like to automate the technique, if possible, to save myself some time. Unfortunately, the macro doesn't work because the VBA doesn't recognize the character and trying to replace it in the code doesn't work either. (It replaces the Baht sign with a "?" and so the code won't run). I have tried to use the unicode but that doesn't work either. Can someone suggest a method for removing the Baht sign from the spreadsheets with a macro or some VBA code? Is it even possible? I would appreciate any ideas.
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. + symbol on currency values
    By bjbboats in forum Excel General
    Replies: 2
    Last Post: 02-19-2015, 09:04 PM
  2. Currency conversion insert currency symbol
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2013, 05:50 AM
  3. [SOLVED] Add Currency symbol in textbox
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 02:02 AM
  4. [SOLVED] Currency symbol always in box
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2013, 07:08 PM
  5. [SOLVED] change currency symbol
    By kopo in forum Excel General
    Replies: 6
    Last Post: 03-24-2013, 09:49 AM
  6. Excel 2007 : Currency symbol
    By nlm in forum Excel General
    Replies: 7
    Last Post: 01-09-2012, 02:29 AM
  7. Removing currency symbol
    By thirdeyesol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2007, 01:58 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