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: 2
Default Thorough deletion of cell contents

I am using an Excel macro to format a file for import into another program.
The file is ultimately saved as a .csv file. Since a range of cells needs
to have the information deleted before it can be imported I have written
the following: Selection.Clear. However, when I try to import this file
the host program is seeing something there and kicking it back. If I open
the .csv file and select the cells in question and press the delete key,
save and close, the file imports with no problem.
MY QUESTION IS, what code can I use instead of ?Selection.Clear? that will
more accurately duplicate what happens when I press the delete key? (When
you record a macro and look at the code pressing the delete key results in
the command ?Selection.ClearContents? ? this, however, results in the same
problem)

--
Message posted via http://www.officekb.com
 
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
Cell Deletion SiH23 Excel Discussion (Misc queries) 2 January 21st 09 01:49 PM
Conditional deletion of cell contents Colin Hayes Excel Worksheet Functions 2 August 9th 07 10:31 PM
Prompt Before Cell Deletion Kryptonix New Users to Excel 3 October 17th 05 01:45 PM
#REF! after cell deletion Colin G Eastwood Excel Discussion (Misc queries) 1 December 2nd 04 01:22 PM
Protect contents in a cell from deletion Diana[_5_] Excel Programming 5 September 27th 03 05:09 PM


All times are GMT +1. The time now is 07:08 PM.

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"