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: 2
Default Problem with List Validation

Hi there. I'm having a weird problem when trying to create a list of
values in a spreadsheet. The list worked fine before, when only 5
values were in the list, but now, when I want to add 2 more, it gives
me a "Method 'Add' in object 'Validation' failed" error. Could anyone
tell me why?

This is the list of values I need, and below is the line that is
getting an error. Thanks!

reasonList = "Company No Longer In Business/L'enterprise a fermé ses
portes," & _
"Investigations Action/Mesure d'enquête," & _
"Not In Region/Hors région," & _
"On-Site Review < 2 Years/Examen sur place < 2 ans," & _
"Company Has Restructured/L'entreprise a restructuré," & _
"Other Approved Reasons/Autres raisons approuvées," & _
"Broker or Courier/Courtier ou Messager"

xls.Cells(row, P1colNOTSELECTEDREASON).Validation.Add xlValidateList,
xlValidAlertStop, xlBetween, reasonList

 
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 drop down list header problem Dave Excel Discussion (Misc queries) 4 December 11th 07 05:11 PM
Validation problem with list 2 working kit Excel Discussion (Misc queries) 2 September 13th 07 12:18 AM
List Validation and IF Function Problem mmd206 Excel Worksheet Functions 2 August 2nd 07 11:12 PM
Combination of Validation List and VLOOKUP Problem Blake Excel Worksheet Functions 2 March 23rd 06 08:00 PM
Excel Validation / Dropdown list Problem edsulya Excel Programming 5 February 5th 04 09:06 PM


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