MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 09:47 AM   #1
MDTyKe
 
Join Date: Feb 2004
Posts: 46
Default Deleting Cells

Heym

Is it possible to delete cells, like the contents of them, without actually deleting the formatting of them:

Atm I have:


Rows("6:22").Select
Selection.Delete Shift:=xlUp
Range("C6").Select

Any ideas?


Thanks in advance,


Matt
MDTyKe is offline   Reply With Quote
Old Mar 30th, 2004, 09:49 AM   #2
fairwinds
MrExcel MVP
 
fairwinds's Avatar
 
Join Date: May 2003
Posts: 8,456
Default Re: Deleting Cells

Hi,

Selection.ClearContents
__________________
"Fair Winds and Following Seas"
fairwinds is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 04:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.