Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do i setup a macro to clear cells in Excel?

I need to create a maco to clear input cells in excel. Please help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do i setup a macro to clear cells in Excel?

worksheets("Sheet1").Range("B9,D1:D5,H12,M3").Clea rContents

--
Regards,
Tom Ogilvy


"TimTam" wrote in message
...
I need to create a maco to clear input cells in excel. Please help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default How do i setup a macro to clear cells in Excel?

TimTam, something like this,

Sub Clear_Range()
Range("A1,A5,A10,A15,D1:D4,F2").ClearContents
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"TimTam" wrote in message
...
I need to create a maco to clear input cells in excel. Please help!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How do i setup a macro to clear cells in Excel?

sub ClearStuff
sheets("Sheet1").range("A1:A10, B3, C5:D6").clearcontents
end sub

Just change the "A1:A10, B3, C5:D6" to what ever range you need...
--
HTH...

Jim Thomlinson


"TimTam" wrote:

I need to create a maco to clear input cells in excel. Please help!

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 to clear contents of certain cells MrAcquire Excel Discussion (Misc queries) 3 February 11th 10 05:25 PM
clear unlocked cells macro help please CandiC Excel Worksheet Functions 3 November 13th 09 11:37 PM
clear cells macro Dorothy Excel Discussion (Misc queries) 5 April 7th 08 12:46 AM
macro to clear cells press313 Excel Discussion (Misc queries) 0 May 24th 06 02:31 AM
Macro to clear cells Esrei Excel Discussion (Misc queries) 5 April 19th 05 01:52 PM


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