Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro clearing cell content

I am working on a spread sheet given to me and I need some help with the VB/marco in it. The spread sheet has a "clear" button, the script for it is
Range("C4:I73").Select
Selection.ClearContents
Range("E5").Select
I would like for it to clear everything in that area (C4 to I73) but not to clear certain cells for example C29 to I29
Thanks in advance
Tyler
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default macro clearing cell content


Range("C4:I28£¬C30:I73").ClearContents



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default macro clearing cell content


Range("C4:I28,C30:I73").ClearContents

-----Original Message-----

Range("C4:I28£¬C30:I73").ClearContents



.

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
Clearing content from a cell (or a group) but retain its formula Dr. Dirk Excel Discussion (Misc queries) 2 January 19th 10 10:25 PM
Clearing a cell value after a set time period - Macro?? Boiler-Todd Excel Discussion (Misc queries) 3 September 18th 09 11:50 PM
Macro for clearing cell contents Sal Excel Discussion (Misc queries) 6 January 9th 09 11:40 PM
i have a check box that keeps clearing out my cells content electromag Excel Worksheet Functions 0 September 1st 06 07:56 PM
Macro on cell content Riko Wichmann New Users to Excel 2 March 3rd 05 02:07 PM


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