+ Reply to Thread
Results 1 to 9 of 9

Not differentiating between capital letters and lower case letters

  1. #1
    Registered User
    Join Date
    12-25-2014
    Location
    Jerusalem
    MS-Off Ver
    XP
    Posts
    23

    Not differentiating between capital letters and lower case letters

    Hi,

    I would like to know how I can make it so the equation on VBA doesn't differentiate between capitals letters and lower case. For the example below, I have had to put the conditions twice in order to include both capitals and lower case.

    Please Login or Register  to view this content.
    If Len(title) > length Then
    title = Replace(title, "size", "")
    title = Replace(title, "Size", "")
    title = Replace(title, "height", "")
    title = Replace(title, "Height", "")
    End If
    Please Login or Register  to view this content.
    Many thanks in advance for any help.
    Last edited by Eliot Y; 03-22-2015 at 06:47 AM.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: How

    Hi Eliot..
    Do you think, you able to search this thread, in your next visit.. HOW..

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Registered User
    Join Date
    12-25-2014
    Location
    Jerusalem
    MS-Off Ver
    XP
    Posts
    23

    Re: How

    Thank you. I made a mistake with the original title, but I have now made then change. Please let me know if you have any guidance.

    Thanks

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

    Re: Not differentiating between capital letters and lower case letters

    Try
    Please Login or Register  to view this content.
    Last edited by jindon; 03-22-2015 at 10:04 AM.

  6. #6
    Registered User
    Join Date
    12-25-2014
    Location
    Jerusalem
    MS-Off Ver
    XP
    Posts
    23

    Re: Not differentiating between capital letters and lower case letters

    Thank you Jindon. I have just tried your suggestion and it works - thanks a lot. But do you or anyone else know a way I can set it so that for all VBA equations there is no differentiation between capitals and lower case, so that i don't have to put it in for each one? Maybe there's a setting?

    Thanks

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

    Re: Not differentiating between capital letters and lower case letters

    Add one line at the top of the module
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-25-2014
    Location
    Jerusalem
    MS-Off Ver
    XP
    Posts
    23

    Re: Not differentiating between capital letters and lower case letters

    Thank you. This seems to work.

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

    Re: Not differentiating between capital letters and lower case letters

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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