PC Review


Reply
Thread Tools Rate Thread

Add ing validation in Excel code

 
 
New Member
Join Date: Oct 2008
Posts: 1
 
      31st Oct 2008
In my excel spread sheet I am adding the following code to show a list

Target.Cells.Validation.Add 1, 1 , , , "=$A$1:$A$10"

It gives me the following error message :
Run-time error '1004' :
Application-defined or object-defined error.

I do have data in A1 to A10 cells. I am not sure how to fix this.
Any help is greatly appreciated.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Validation via Excel VBA code. Seema Microsoft Excel Programming 2 9th Jul 2008 03:17 PM
Day Validation code rama Microsoft Access Form Coding 1 17th Jul 2007 03:33 PM
Validation Code =?Utf-8?B?TGFycnkgRy4=?= Microsoft Access 1 25th Apr 2006 07:14 PM
where is my validation code? J Lunis Windows XP Basics 4 9th Aug 2005 01:47 AM
vba code for validation =?Utf-8?B?amFtZXM=?= Microsoft Excel Programming 2 11th Feb 2005 02:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:49 PM.