+ Reply to Thread
Results 1 to 8 of 8

VB Code to convert to 1st Capital in a word

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to convert to 1st Capital in a word

    hello:

    Please refer to attached file.
    I need VB Code to convert data in Column B as follows:
    1stg Letter of Word Capital.
    Some examples are shown in column C.
    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VB Code to convert to 1st Capital in a word

    Hi Riz,

    Try below code ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: VB Code to convert to 1st Capital in a word

    Try.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,
    Maras.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to convert to 1st Capital in a word

    Hello Maras

    It works great, however the actual data is part of large worksheet with data in other columns.
    These data are in column D so i need your help to modify above code so that i overwrites corrected data in same column

    Once again thanks

    PS : YOUR CODE IS GICING RESULT AS ATTACHED...

    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 02-26-2021 at 02:43 PM.

  5. #5
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VB Code to convert to 1st Capital in a word

    I just noticed that you have MS Off. Ver. 2010 so my code in post #2 may not give you the expected results, try modified code below ...
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to convert to 1st Capital in a word

    Hello nankw83..

    Yes your code works great.

    Thanks

    Riz

  7. #7
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: VB Code to convert to 1st Capital in a word

    Glad to help & thanks for the added Rep+

  8. #8
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: VB Code to convert to 1st Capital in a word

    Corrected code.
    Please Login or Register  to view this content.

+ 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. Replies: 2
    Last Post: 12-25-2018, 09:07 AM
  2. [SOLVED] VBA code for Word to PDF convert
    By rchure in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2017, 05:01 AM
  3. Convert to capital
    By hnsmail in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-04-2016, 11:27 AM
  4. Convert text to capital letters
    By jirakst in forum Excel General
    Replies: 4
    Last Post: 05-02-2015, 02:18 PM
  5. convert word into VBA code
    By Aleemaher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2014, 01:42 AM
  6. Code That will Automatically convert a cell's text to Capital...
    By Mhz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2007, 10:57 AM
  7. how do I convert text in excel to 1st letter capital,only
    By Don Guillett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM

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