+ Reply to Thread
Results 1 to 6 of 6

VB Code to find blank character

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

    VB Code to find blank character

    Hello:

    Please refer to attached file.
    I need VB Code to check data in column A:C to do following.
    1. Chech to see if 1st char in aby cell is blank, if blank delete blank space.
    2. Convert Data in column B and C so that 1st character is capital and others lower case.

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VB Code to find blank character

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Valued Forum Contributor PaulSP8's Avatar
    Join Date
    11-21-2017
    Location
    Chorley, England
    MS-Off Ver
    2013 & 2021
    Posts
    437

    Re: VB Code to find blank character

    Try this;

    Please Login or Register  to view this content.
    Last edited by PaulSP8; 02-14-2020 at 05:29 AM. Reason: Forgot about Column A :-|

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

    Re: VB Code to find blank character

    Hello:
    Thanks a lot to both of you.

    Works

    Riz

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VB Code to find blank character

    I have been playing with Pauls code.

    Try:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: VB Code to find blank character

    Another way (at its heart, a combo of PaulSP8 and mehmetchik's methods, sort of)...
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 02-14-2020 at 10:44 PM.

+ 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: 5
    Last Post: 11-24-2019, 04:41 PM
  2. [SOLVED] VB Code to delete blank character before and/or after text in cell
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2018, 12:54 PM
  3. [SOLVED] VB Code to find and delete character from txt file
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-24-2016, 08:12 AM
  4. [SOLVED] how to find special character & replace with blank
    By mohan.r1980 in forum Excel General
    Replies: 7
    Last Post: 08-31-2016, 12:30 PM
  5. [SOLVED] VB Code to find row# with certain character
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-15-2016, 07:08 AM
  6. Remove blank character and change the character (or symbol)
    By vutienhp in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2015, 11:55 PM
  7. [SOLVED] How to code the selection.find not to crash when the data to find is blank
    By evertjvr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-25-2012, 03:04 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