LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamically adding an in-cell drop-down list (i.e. Validation Object) to a cell?


Hi Tom Ogilvy,

I am having the same problem as debartsa but I'm using Excel XP. I hav
been searching for quite some time and try many options but still can'
solve it, this is my code

1 With sheet1.Range("E3").Validation
2 .Delete
3 .Add Type:=xlValidateList, Formula1:="a,b,c,d"
4 .IgnoreBlank = True
5 .InCellDropdown = True
6 End With

I keep getting "Run-time error='1004' Application Defined o
object-defined error" on the line that adds type (line 3). However, i
I move .IgnoreBlank (line 4)or .IncellDropDown (line 5) statement t
above .add Type... (line 3) I get the same error on those statements.

Appreciate if you could help fix this problem.
Thanks

wailoo
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message292105.htm



 
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
permenent appearance of the drop down arrow when adding validation toa cell thread Excel Worksheet Functions 2 March 24th 08 05:20 PM
Validation cell entries (Drop-down list) Nuno[_2_] Excel Discussion (Misc queries) 3 November 20th 07 02:53 PM
Default Cell Value with Validation Drop-Down List Dave H Excel Discussion (Misc queries) 0 January 30th 06 08:58 PM
How to dynamically select a validation list from data in a cell? sessc Excel Discussion (Misc queries) 1 July 28th 05 06:11 PM
adding a list validation to a cell Phil Sobolik Excel Programming 3 October 9th 03 01:53 AM


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