+ Reply to Thread
Results 1 to 9 of 9

Capitalize all Letters in Column B..rows will Vary

  1. #1
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Capitalize all Letters in Column B..rows will Vary

    Hello everybody,

    Does anybody know an easy macro that will make every letter in column B Upper case. But the only thing is the rows will vary each time i run the macro so it will need to run until the last row in the column is UpperCase. Thanks for your help.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Capitalize all Letters in Column B..rows will Vary

    Heres one from my colection of other peoples code! i think this came from mrexcel
    Please Login or Register  to view this content.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,830

    Re: Capitalize all Letters in Column B..rows will Vary

    Hi Trevor. Place this macro in the worksheet code module (not a regular module). The text in column B will automatically be converted to uppercase as you enter the data in each cell in column b and then exit the cell. You don't have to run any macro. This will be done automatically. Does this work for you?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Capitalize all Letters in Column B..rows will Vary

    This works martindwilson but is making Columns C and D upper case as well. Is there a way to make it just for column B. And Mumps1 this coding is part of a bigger macro. I import all the data so thats why I'm trying to find a way to have the macro convert Column B only to uppercase. I appreciate the help.

  5. #5
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Capitalize all Letters in Column B..rows will Vary

    Hi does anybody know how to fix that one problem regarding it upper-casing Columns C and D and not just Column B. Sorry for the continuous posts I'm in kind-of a time crunch.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Capitalize all Letters in Column B..rows will Vary

    Please Login or Register  to view this content.
    or using mumps version
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Capitalize all Letters in Column B..rows will Vary

    Thank You!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Capitalize all Letters in Column B..rows will Vary

    Please Login or Register  to view this content.

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,830

    Re: Capitalize all Letters in Column B..rows will Vary

    Hi Trevor. Have you tried my suggestion? I tried it on a dummy sheet and it worked for me. The advantage to using a Worksheet_Change event is that you don't have to keep running the macro each time. The data is converted automatically after you enter it.

+ 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] VBA to create a chart when data can vary in column position and rows
    By MalibuLX3 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-21-2013, 11:21 AM
  2. Replies: 8
    Last Post: 02-18-2010, 05:14 AM
  3. [SOLVED] How can I format the cells to capitalize ALL letters in a word?
    By lgb542 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2005, 02:05 PM
  4. omitting column letters and numbers of rows
    By linnie in forum Excel General
    Replies: 1
    Last Post: 09-15-2005, 09:05 PM
  5. [SOLVED] Vary the column widths for different rows
    By Marty in forum Excel General
    Replies: 3
    Last Post: 01-04-2005, 08:06 PM

Tags for this Thread

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