Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default paste linked cells show "0"

I have a number of cells in a range (lets say A14:J52).
Some of these cells are "paste linked" from cells on other sheets.

Unfortunately, when the original cell is empty, the value of the
"paste linked" cell shows as "0".
(not just blank like the original)

Is there a way to keep the "paste linked" cell showing "0"?

If not, how would I go about using VBA to systematically go through
the above described range and delete those zeros?

At the point I ran this code, any "0" could be deleted from the range
safely whether it was a "paste linked" cell or not.


Any help would be appreciated.


Doug
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default paste linked cells show "0"

format the cell as #


On Nov 16, 11:49*pm, Doug Howell wrote:
I have a number of cells in a range (lets say A14:J52).
Some of these cells are "paste linked" from cells on other sheets.

Unfortunately, when the original cell is empty, the value of the
"paste linked" cell shows as "0".
(not just blank like the original)

Is there a way to keep the "paste linked" cell showing "0"?

If not, how would I go about using VBA to systematically go through
the above described range and delete those zeros?

At the point I ran this code, any "0" could be deleted from the range
safely whether it was a "paste linked" cell or not.

Any help would be appreciated.

Doug


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default paste linked cells show "0"

Changing the cell to number doesn't work.
It still shows "0" in the linked cell.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default paste linked cells show "0"

Format as Custom

Type the # sign only


Gord Dibben MS Excel MVP

On Mon, 16 Nov 2009 12:37:22 -0800 (PST), Doug Howell
wrote:

Changing the cell to number doesn't work.
It still shows "0" in the linked cell.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default paste linked cells show "0"

ToolsOptionsViewZero Values.

That affects any zero, though - even the legitimate ones.
Can also use Conditional formatting - font & Cell the same colour
(white?).


On 16 Nov, 20:42, Gord Dibben <gorddibbATshawDOTca wrote:
Format as Custom

Type the # sign only

Gord Dibben *MS Excel MVP

On Mon, 16 Nov 2009 12:37:22 -0800 (PST), Doug Howell



wrote:
Changing the cell to number doesn't work.
It still shows "0" in the linked cell.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default paste linked cells show "0"

Too fast with the send button.

The custom format of # will hide the zeros but not show decimals if your
blank source cell becomes a number like 123.45

Rather than pasting links it is better, not easier, to use a formula like

=IF(Sheet1!A1="","",Sheet1!A1)


Gord

On Mon, 16 Nov 2009 12:42:53 -0800, Gord Dibben <gorddibbATshawDOTca wrote:

Format as Custom

Type the # sign only


Gord Dibben MS Excel MVP

On Mon, 16 Nov 2009 12:37:22 -0800 (PST), Doug Howell
wrote:

Changing the cell to number doesn't work.
It still shows "0" in the linked cell.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default paste linked cells show "0"

For Excel 2007, this is actually easier....

Excel Options - Advanced - Display Options for this Worksheet
uncheck the "show a zero in cells that have zero value" box


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
linked cells show "0" Lenny Excel Discussion (Misc queries) 1 April 13th 09 10:39 PM
Multiple "source" workbooks linked to single "destination" workboo DAVEJAY Excel Worksheet Functions 1 September 17th 07 05:33 PM
how do you show on toolbar the icon which does "paste as value"? dragomira Excel Discussion (Misc queries) 1 May 1st 07 03:33 PM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


All times are GMT +1. The time now is 09:56 AM.

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

About Us

"It's about Microsoft Excel"