LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default empty vs. "" vs. Null vs. Nothing vs. not Used vs. Argggh

To make the nightmare complete, I should have also mentioned cells
formatted as "Text" vs. general - grrr.

Anyway, you know how you can go control-RightArrow (etc.) to go to the
next "unused" or "Used" cell when you're in (or out) of a clump? However
when you paste in a Ctl-C copy of an Access table or query, you don't
have that luxury. (Is it that all cells are "Used?")

I would like to write a quickie VBA utility to rectify this. Perhaps it
would achieve something of the order of

dim c as range
for all c in activesheet.UsedRange
if isnull(c) then c.value=Nothing
If c.Value < xlNull then c.value=Nothing
If c.value="" then c.value=Nothing
next

What would be the right way to do it? Is this way viable conceptually?

And does the cell format figure into this? Note that there is no
c.format, so I haven't seen a property for it. (Regardless, Redmond
needs to get its head out of you-know-where and provide another format
designation. E.g., sometimes data pasted into a cell formatted as text
is critically different than if pasted to general and then formatted to
text - but they appear to be the same. The mere 2 designations Text and
General are absurdly inadequate.)

Did I remember to say argggh?
 
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
Hyperion Essbase Excel Add-in - returning text ("0") for null valu bill_morgan Excel Discussion (Misc queries) 7 February 28th 12 05:10 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How to write parameter query with "or is null" criteria Vincent Alliance New Users to Excel 0 April 8th 06 02:55 AM
cells formatted to tick when text value "Y" if or null if "N" Jay Excel Discussion (Misc queries) 7 January 13th 06 09:16 AM
"IF"- "THEN" type Formula based on Null value Jay Excel Worksheet Functions 8 November 17th 05 09:05 AM


All times are GMT +1. The time now is 09:26 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"