+ Reply to Thread
Results 1 to 6 of 6

false blanks

  1. #1
    markx
    Guest

    false blanks

    Hi people,

    I made a copy/paste special values from one sheet (formulas) to another.
    These formulas give me either a numeric value or blank ("") cell.
    However, the blanks that I copied/pasted are in fact "false blanks": if I
    use xlDirection, it goes to the very end of the pasted range, even if in
    between the cells are equal to "".
    Also, if I check the "false blank" cells with the =ISBLANK(), it gives me
    "FALSE".

    Do you know how to convert these "false blanks" to the normal blanks? (I
    know I can do it manually by going through the range and pressing "delete"
    key where needed, but I would rather look for a VBA solution, if it
    exists...)

    Your help would be much appreciated,
    Thanks,

    Mark



  2. #2
    Don Guillett
    Guest

    Re: false blanks

    try testing for length if you don't really have any one character text
    len(mycell)<2 or >1

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "markx" <[email protected]> wrote in message
    news:[email protected]...
    > Hi people,
    >
    > I made a copy/paste special values from one sheet (formulas) to another.
    > These formulas give me either a numeric value or blank ("") cell.
    > However, the blanks that I copied/pasted are in fact "false blanks": if I
    > use xlDirection, it goes to the very end of the pasted range, even if in
    > between the cells are equal to "".
    > Also, if I check the "false blank" cells with the =ISBLANK(), it gives me
    > "FALSE".
    >
    > Do you know how to convert these "false blanks" to the normal blanks? (I
    > know I can do it manually by going through the range and pressing "delete"
    > key where needed, but I would rather look for a VBA solution, if it
    > exists...)
    >
    > Your help would be much appreciated,
    > Thanks,
    >
    > Mark
    >




  3. #3
    Forum Contributor colofnature's Avatar
    Join Date
    05-11-2006
    Location
    -
    MS-Off Ver
    -
    Posts
    301
    Or put this immediately after the PasteSpecial line

    for each c in selection.cells
    if c.value = "" then c.value = empty
    next


    Col

  4. #4
    markx
    Guest

    Re: false blanks

    Hi, I checked these cells for characters, and once again it confirms me that
    there is neither space nor character inside...
    It's really very strange, but I'm almost sure that it has something to do
    with copy/paste special/value of formulas with result equal to blank...

    Mark


    "Don Guillett" <[email protected]> wrote in message
    news:[email protected]...
    > try testing for length if you don't really have any one character text
    > len(mycell)<2 or >1
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "markx" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hi people,
    >>
    >> I made a copy/paste special values from one sheet (formulas) to another.
    >> These formulas give me either a numeric value or blank ("") cell.
    >> However, the blanks that I copied/pasted are in fact "false blanks": if I
    >> use xlDirection, it goes to the very end of the pasted range, even if in
    >> between the cells are equal to "".
    >> Also, if I check the "false blank" cells with the =ISBLANK(), it gives me
    >> "FALSE".
    >>
    >> Do you know how to convert these "false blanks" to the normal blanks? (I
    >> know I can do it manually by going through the range and pressing
    >> "delete" key where needed, but I would rather look for a VBA solution, if
    >> it exists...)
    >>
    >> Your help would be much appreciated,
    >> Thanks,
    >>
    >> Mark
    >>

    >
    >




  5. #5
    markx
    Guest

    Re: false blanks

    Thanks colofnature,
    Your solution works perfectly!
    Regards,
    Mark


    "colofnature" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > Or put this immediately after the PasteSpecial line
    >
    > for each c in selection.cells
    > if c.value = "" then c.value = empty
    > next
    >
    >
    > Col
    >
    >
    > --
    > colofnature
    > ------------------------------------------------------------------------
    > colofnature's Profile:
    > http://www.excelforum.com/member.php...o&userid=34356
    > View this thread: http://www.excelforum.com/showthread...hreadid=546458
    >




  6. #6
    Tom Ogilvy
    Guest

    Re: false blanks

    select the range, do
    Edit=>Replace
    Replace What: Leave Blank
    Replace With: $$$$

    then reverse

    Edit=>Replace
    Replace What: $$$$
    Replace With: leave blank

    clearly you can do this with code as well.

    --
    Regards,
    Tom Ogilvy


    "markx" <[email protected]> wrote in message
    news:[email protected]...
    > Hi people,
    >
    > I made a copy/paste special values from one sheet (formulas) to another.
    > These formulas give me either a numeric value or blank ("") cell.
    > However, the blanks that I copied/pasted are in fact "false blanks": if I
    > use xlDirection, it goes to the very end of the pasted range, even if in
    > between the cells are equal to "".
    > Also, if I check the "false blank" cells with the =ISBLANK(), it gives me
    > "FALSE".
    >
    > Do you know how to convert these "false blanks" to the normal blanks? (I
    > know I can do it manually by going through the range and pressing "delete"
    > key where needed, but I would rather look for a VBA solution, if it
    > exists...)
    >
    > Your help would be much appreciated,
    > Thanks,
    >
    > Mark
    >
    >




+ 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