LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problems with Validation object Add and Modify methods

For some reason I can't make any sense out of the Validation object in Excel
(2003) - whenever I try to use the Add or Modify methods or fetch any of the
properties, I get one of the following generic errors (Can't quite figure out
what the pattern is for either one).

Run-time Error '1004': Application-defined or object-defined error
Run-time Error '-2147417848 (80010108)': Method 'Add' of object 'Validation'
failed

Example code I'm using:

Range("b1").Validation.Add xlValidateList, xlValidAlertStop, xlBetween,
"=$A$1:$A$10"

Any suggestions? I can't find enough info to establish when you would use
the Add method over the Modify method and whether there is something you have
to do before calling Add.

Cheers,
John


 
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
Problems returning Collection object McManCSU[_23_] Excel Programming 4 August 9th 05 07:02 PM
HELP! Object, Properties & Methods dee Excel Programming 5 February 13th 05 10:24 PM
TO MODIFY A EXCEL OBJECT FROM WORD USING VBA Sandra Bonilla Excel Programming 1 November 10th 04 03:59 AM
How to create two validation lists that modify each other's value? Chracatoa Excel Programming 1 September 6th 04 09:36 PM
Validation.Modify Runtime Error in Protected Worksheet Kent Klingler Excel Programming 3 May 13th 04 09:18 PM


All times are GMT +1. The time now is 05:09 PM.

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"