Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete specific cells contents in a row with some locked cells in the same row

I would like to use a command button to clear the contents of specific
cells of the activecell's row. The row will have some locked cells
also.

Thanks for any help!

Marc

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Delete specific cells contents in a row with some locked cells in the same row

Private Sub Commandbutton1_Click()
cells(activecell.row,1).Range("A1,F1:J1,M1").Clear Contents
End Sub

would clear the contents of cells in column A, F to J and M for the
activerow.

in the code
Range("A1,F1:J1,M1").
is relative to Cells(Activecell.row,1).



--
Regards,
Tom Ogilvy


"trussman" wrote in message
oups.com...
I would like to use a command button to clear the contents of specific
cells of the activecell's row. The row will have some locked cells
also.

Thanks for any help!

Marc



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Delete specific cells contents in a row with some locked cells in the same row

Thank you

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
Delete contents unlocked cells RobN[_3_] Excel Discussion (Misc queries) 9 December 13th 07 10:34 PM
Delete contents in cells with macro dford Excel Discussion (Misc queries) 4 February 4th 07 12:39 PM
Delete contents of cells mikespeck Excel Worksheet Functions 3 July 27th 06 03:16 PM
How do I delete the contents of unprotected cells only? Dan Excel Discussion (Misc queries) 3 August 8th 05 08:18 PM
how to delete contents of cells having specific data steve Excel Discussion (Misc queries) 2 July 20th 05 10:42 PM


All times are GMT +1. The time now is 01:28 PM.

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"