LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Validation List advise....

Hi Bob,
I thought I'd just have another shot of this before calling it a day (more
like month!!)
I decided to record a macro of deleting the text "Blank" in the cell, and
then looking at the code it produced. I then entered the following code
(second line) to the "Blank Case" to give me the result I was seeking.

Case "Blank"
Range("B" & i & ":M" & i).Interior.ColorIndex = Null
ActiveCell.FormulaR1C1 = ""

Thanks
Dermot

"Dermot" wrote:

Hi Bob
I tried changing the Else statement, it takes away the colour formatting,
but the text "Blank" (the option I have in the validation list to remove all
formatting within the selected row range) remains.
I was determined to try and do this myself have dried may different things
but I anly manage to revove the colur not the text contents.
Any other suggestions would be appreciated.

"Bob Phillips" wrote:

Try changing your Case Else code to


Case Else
Range("B" & i & ":M" & i).Interior.ColorIndex = xlNone
Target.Value = ""

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Dermot" wrote in message
...
Thanks Bob
For the link and explanation regarding creating a validatation list from
list in a range of cells and contextures link.

I have the "Ignore Blanks" check box selected, but when I click on my undo
option to remove the formating the Text "Undo" remains in the cell.
Do I have to manually delete this text ?
Is there a way to achieve this deletion automatically when the colour
formatting
is remove when "Undo" option clicked in the validation list?

"Bob Phillips" wrote:


"Dermot" wrote in message
...
If I create a validation list, with an option Yes, the text "Yes"

appears
in
the relevant cell.How do I create an option in the validation list to
return
it to a blank cell with no text.

As long as you do not uncheck 'Ignore Blanks', then you can clear any

value
down and it will allow blank

1. Can you program a full validation list instead of using Data |
Validation
List?

Yes, you create a list of values and use say =M1:M10 in the List textbox

2. Is there a way to increase the width of the Validation List

dropdown to
accomodate longer words?

You can increase the column width, or you can 'frig it' as Debra shows

at
http://www.contextures.com/xlDataVal08.html#Wider






 
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
Validation List Advise Please Dermot New Users to Excel 3 January 9th 06 09:33 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 PM
AutoComplete? Drop Down List? Please Advise Jim[_21_] Excel Programming 0 August 19th 03 07:10 PM


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