+ Reply to Thread
Results 1 to 10 of 10

Auto upper case does not include specific cell

  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,807

    Auto upper case does not include specific cell

    Hello,
    Can someone fix this code? Which does not include Sheet1 “A1”, Sheet2 “D10” and Sheet3 “F1”.

    Thanks.
    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,807

    Re: Auto upper case does not include specific cell

    This was my original code. Thanks.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Auto upper case does not include specific cell

    Try this:

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,807

    Re: Auto upper case does not include specific cell

    Hi TMS
    What is the “option explicit” for?

    Does that include in the code?

    I also see that “is nothing then” been removed feom the original code. Don’t i need it?

    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Auto upper case does not include specific cell

    Option Explicit ensures that variables are defined.

    Do you need the code that has been removed? One good way to find out is put the new code in instead of yours in the Workbook code module and see if it does what you want.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Auto upper case does not include specific cell


  7. #7
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,807

    Re: Auto upper case does not include specific cell

    Hi TMS
    Your code worked for me. Question, Having the "option explicit" with the code you provided, will this affect my other codes that its in my workbook?

    I also tried your code without the "option explicit" and it worked without it but I just don't know how much important it is to be in it.

    I am not familiar with this and reading the statement you sent me, but I still did not understand.

    Thanks.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Auto upper case does not include specific cell

    It's intended to help you get your code right first time. With it, you must declare your variables which avoids things like misspelling variables, or using a variable that hasn’t been initialised. So, for example, xlUp and x1Up look the same/similar but xlUp is a VBA constant and x1Up doesn’t exist.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: Auto upper case does not include specific cell

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  10. #10
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,807

    Re: Auto upper case does not include specific cell

    Thank You TMS

+ 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] Auto Upper Case
    By RJ1969 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2018, 03:13 PM
  2. [SOLVED] VBA macro UPPER auto case
    By Peterino in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 11-17-2014, 03:34 PM
  3. Auto convert lower case to Upper in same cell
    By russkris in forum Excel General
    Replies: 9
    Last Post: 08-08-2014, 06:49 AM
  4. [SOLVED] Lower Case to Upper Case but No Auto Correction : Solved by Mod (6StringJazzer)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 10:44 AM
  5. [SOLVED] Auto upper case for specific range of cells
    By giligancow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2013, 12:21 PM
  6. Auto Upper Case
    By jamphan in forum Excel General
    Replies: 1
    Last Post: 01-05-2006, 05:50 PM
  7. [SOLVED] Excel Font Effects should include Upper Case
    By Joe Koss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-07-2005, 03:05 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