Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Adding i new item to current data validation list

Hi, i'm trying to add a new item to validation list. It seems code runs
without errors but the result is a row, not a dropdown list. When I close the
workbook and open I can see drop down list.

Help please.

Code to add "Item3"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertWarning, Operator _
:=xlBetween, Formula1:="Item1;Item2;Item3"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = False
.ShowError = False
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Adding i new item to current data validation list

Use commas after each item not semi-colons
Item1,Item2,Item3
Paul

"KT1972" wrote in message
...
Hi, i'm trying to add a new item to validation list. It seems code runs
without errors but the result is a row, not a dropdown list. When I close
the
workbook and open I can see drop down list.

Help please.

Code to add "Item3"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertWarning,
Operator _
:=xlBetween, Formula1:="Item1;Item2;Item3"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = False
.ShowError = False
End With



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Adding i new item to current data validation list

Thanks.

"Paul" wrote:

Use commas after each item not semi-colons
Item1,Item2,Item3
Paul

"KT1972" wrote in message
...
Hi, i'm trying to add a new item to validation list. It seems code runs
without errors but the result is a row, not a dropdown list. When I close
the
workbook and open I can see drop down list.

Help please.

Code to add "Item3"
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertWarning,
Operator _
:=xlBetween, Formula1:="Item1;Item2;Item3"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = False
.ShowError = False
End With




Reply
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
Adding to a data validation list Josh Craig Excel Discussion (Misc queries) 2 June 30th 09 02:59 AM
Macro to select data Validation List Item Corey[_3_] Excel Programming 1 November 24th 08 12:19 PM
How do I add an item with comma in the list of data validation bhavna Excel Discussion (Misc queries) 9 October 2nd 08 04:13 PM
Validation List -adding data and using it later POC Excel Discussion (Misc queries) 1 July 23rd 06 05:40 AM
Help! Selecting item on data validation list switches windows Kevlar Excel Discussion (Misc queries) 0 February 28th 06 10:35 PM


All times are GMT +1. The time now is 08:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"