Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 298
Default VB Code for clearing Cells

I need help clearing a range of cells using vb code in place of a long drawn
out macro.

My cell range is D11 to D22

In these cells I have a TRUE/FALSE attached to a tick box.

When I press the button to move to the sheet I would like these cells to say
FALSE and remove any ticks.

Can anyone help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default VB Code for clearing Cells

I would think this would work:

ActiveSheet.Range("d11:d22").Value = False



Rich wrote:

I need help clearing a range of cells using vb code in place of a long drawn
out macro.

My cell range is D11 to D22

In these cells I have a TRUE/FALSE attached to a tick box.

When I press the button to move to the sheet I would like these cells to say
FALSE and remove any ticks.

Can anyone help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 298
Default VB Code for clearing Cells

Thanks Dave

"Dave Peterson" wrote:

I would think this would work:

ActiveSheet.Range("d11:d22").Value = False



Rich wrote:

I need help clearing a range of cells using vb code in place of a long drawn
out macro.

My cell range is D11 to D22

In these cells I have a TRUE/FALSE attached to a tick box.

When I press the button to move to the sheet I would like these cells to say
FALSE and remove any ticks.

Can anyone help.


--

Dave Peterson

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
Code question for clearing a command checkbox. Newbeetle Excel Discussion (Misc queries) 4 February 13th 07 09:05 AM
clearing cells Lauren Excel Worksheet Functions 1 September 7th 06 09:41 PM
Code crashes after clearing comments L. Howard Kittle Excel Worksheet Functions 2 February 20th 06 04:54 AM
Clearing all Active Cells JohnHill Excel Worksheet Functions 2 July 26th 05 06:30 AM
Clearing Cells mully New Users to Excel 3 May 19th 05 07:12 PM


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