Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Quick Simple VB Snippet Needed

Hey there,

Quick question as I am a bit rusty - I need a quick snippet to delete cell
contents within the user selected area so that the cell returns to
ISBLANK/nothing there status - IF the value of the cell = A specific value
for example #N/A, or 1, etc...

Best regards,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Quick Simple VB Snippet Needed

for each cell in selection
if cell.Value = 1 then
cell.clearcontents
end if
Next

--
Regards,
Tom Ogilvy

"Tim H" wrote in message
...
Hey there,

Quick question as I am a bit rusty - I need a quick snippet to delete cell
contents within the user selected area so that the cell returns to
ISBLANK/nothing there status - IF the value of the cell = A specific value
for example #N/A, or 1, etc...

Best regards,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Quick Simple VB Snippet Needed

Thanks Much!

"Tom Ogilvy" wrote:

for each cell in selection
if cell.Value = 1 then
cell.clearcontents
end if
Next

--
Regards,
Tom Ogilvy

"Tim H" wrote in message
...
Hey there,

Quick question as I am a bit rusty - I need a quick snippet to delete cell
contents within the user selected area so that the cell returns to
ISBLANK/nothing there status - IF the value of the cell = A specific value
for example #N/A, or 1, etc...

Best regards,




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
Quick help needed... BAW Excel Worksheet Functions 2 October 27th 06 06:33 PM
Quick help with a simple function! [email protected] Excel Discussion (Misc queries) 4 July 20th 06 06:17 AM
quick code needed saziz[_33_] Excel Programming 6 December 15th 05 10:38 PM
simple quick question John Excel Programming 2 October 26th 05 03:21 PM
Simple Question, need quick answer please Stevie_mac Excel Programming 1 April 1st 04 03:52 PM


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