Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Lee Lee is offline
external usenet poster
 
Posts: 33
Default Clearing Cell Contents

I have a large grid of cells that users input numbers
into. This grid is then exported into a csv file.

The problem I'm having is when users clear a cell by using
the spacebar. The CSV export thinks there is data in
these cells which sometimes causes trailing commas past
the end of a data string.

Is there any way in VBA to clear the contents of all cells
within a range that are not greater than 0 or are
apparently blank (cleared by the spacebar)?

Any help is appreciated.

Thanks,

Lee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Clearing Cell Contents

Hi Lee

Check out this site
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Lee" wrote in message ...
I have a large grid of cells that users input numbers
into. This grid is then exported into a csv file.

The problem I'm having is when users clear a cell by using
the spacebar. The CSV export thinks there is data in
these cells which sometimes causes trailing commas past
the end of a data string.

Is there any way in VBA to clear the contents of all cells
within a range that are not greater than 0 or are
apparently blank (cleared by the spacebar)?

Any help is appreciated.

Thanks,

Lee



  #3   Report Post  
Posted to microsoft.public.excel.programming
Lee Lee is offline
external usenet poster
 
Posts: 33
Default Clearing Cell Contents

Ron,

Thanks. This get me headed in the right direction.
Appreciate the response.

Lee

-----Original Message-----
Hi Lee

Check out this site
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Lee" wrote in

message ...
I have a large grid of cells that users input numbers
into. This grid is then exported into a csv file.

The problem I'm having is when users clear a cell by

using
the spacebar. The CSV export thinks there is data in
these cells which sometimes causes trailing commas past
the end of a data string.

Is there any way in VBA to clear the contents of all

cells
within a range that are not greater than 0 or are
apparently blank (cleared by the spacebar)?

Any help is appreciated.

Thanks,

Lee



.

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
Macro for clearing cell contents Sal Excel Discussion (Misc queries) 6 January 9th 09 11:40 PM
Clearing Cell Contents / Worksheet_Change Event Grahame Coyle[_2_] Excel Worksheet Functions 5 September 5th 08 01:09 PM
Selectively Clearing cell contents jdd Excel Worksheet Functions 2 April 22nd 06 04:06 AM
Clearing Contents of Cell Burt Excel Worksheet Functions 1 May 4th 05 02:46 PM
Clearing cell contents automatically Tom Ogilvy Excel Programming 2 August 21st 03 04:07 AM


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