+ Reply to Thread
Results 1 to 7 of 7

Macro for the following function in excel 2003

  1. #1
    Registered User
    Join Date
    12-26-2011
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question Macro for the following function in excel 2003

    I would like to create a macro for the following function:
    = Code(mid(E3,1,1)=63

    The aim of this macro is to analyse each letter contained in a particular cell. If the code indicates a vowel then a "V" is printed if not then a "C" is printed.

    I would like some help with this please.

    thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro for the following function in excel 2003

    Please be more explicit. Your formula, (which you say you want to replace with a macro) only looks at the first character. What result do you expect if there is more than one vowel in the cell.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-26-2011
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro for the following function in excel 2003

    Yes, that is correct. Actually the function is part of a larger nested function. So if the word under analysis is say "football" then the result should be "CVVCCVCC".
    the result will be then be used for further manipulation.
    thanks.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro for the following function in excel 2003

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    B1 and down: =VC(A1)
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    12-26-2011
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro for the following function in excel 2003

    thanks. this worked nicely.

    this function will be used to operate on the maltese language font. there are a few particular letters in the alphabeth such as ġ, ċ, ħ,.
    is there a way to include these letters in the function provided above?

    regards,

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro for the following function in excel 2003

    I don't know those characters -- they are not in the ANSI code page (1252) in my version of Excel. Are they Unicode?

  7. #7
    Registered User
    Join Date
    12-26-2011
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro for the following function in excel 2003

    hello,
    the characters are in Unicode (Hex). These are: 017B, 017C, 010A, 010B, 0120, 0121,
    0126 and 0127.

    regards,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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