Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default false blanks


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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default 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" wrote in message
...
try testing for length if you don't really have any one character text
len(mycell)<2 or 1

--
Don Guillett
SalesAid Software

"markx" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default false blanks

Thanks colofnature,
Your solution works perfectly!
Regards,
Mark


"colofnature"
wrote in message
...

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP using FALSE returning blanks and #N/A dread Excel Worksheet Functions 1 September 16th 08 10:18 PM
Sumproduct copying blanks or how to insert zero into blanks asg2307 Excel Worksheet Functions 4 April 4th 07 07:26 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
Paste Special Skip Blanks not skipping blanks, but overwriting... gsrosin Excel Discussion (Misc queries) 0 February 22nd 05 03:33 AM
True Or False, no matter what... it still displays the false statement rocky640[_2_] Excel Programming 2 May 13th 04 04:57 PM


All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"