+ Reply to Thread
Results 1 to 7 of 7

How to remove the " " blank spaces which are added with formula in a Range with MACRO

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    How to remove the " " blank spaces which are added with formula in a Range with MACRO

    How to remove the " " blank spaces which are added with formula in a Range with MACRO

    Dear Forum,

    Some formulas in order to show blank cells add " " blank spaces but now I want to remove such blank spaces with Macro..

    I cannot change the code of adding it in the first place as that would mean changing the entire design however I want to just get rid of some of the blank spaces in the cells as when I am doing a CountA on this column I do get them in the count.

    I have tried using the

    Please Login or Register  to view this content.
    But in vain for some strange reasons the blank spaces just dont go...

    Warm Regards
    e4excel
    Last edited by e4excel; 08-18-2011 at 05:25 PM.

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    By blank spaces, do you mean empty cells? if so,
    Please Login or Register  to view this content.
    will delete the entire row...
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    The code you provided should clear blank spaces:
    Please Login or Register  to view this content.
    If it doesn't work, post a sample copy of your workbook and we will take a look.

  4. #4
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    Hi e4excel. Are you sure the space isn't in the formatting of the cell? Example custom format is _ @
    -Greg If this is helpful, pls click Star icon in lower left corner

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    Hi e4excel, I have added code tags to your first post. I realize that you only had two lines of code so you might have thought "no big deal" but please remember to use them whenever you post code.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  6. #6
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    Quote Originally Posted by BigBas View Post
    The code you provided should clear blank spaces:
    Please Login or Register  to view this content.
    If it doesn't work, post a sample copy of your workbook and we will take a look.
    Thanks everyone...for all your suggestions I think the clearcontents does work I was making a mistake..

    Warm regards
    e4excel

  7. #7
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Re: How to remove the " " blank spaces which are added with formula in a Range with M

    Quote Originally Posted by Mordred View Post
    Hi e4excel, I have added code tags to your first post. I realize that you only had two lines of code so you might have thought "no big deal" but please remember to use them whenever you post code.
    Sincere apologies...

    No it just genuinely skipped out of my mind...

+ 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