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: 3,355
Default Validation Error - Please Help!!!

FIrst, you're missing an END IF in this code

Private Sub Worksheet_Change(ByVal Target As Range)

If Not Intersect(Target, Range("A1")) Is Nothing Then
Call AddValidation
Else
Exit Sub
END IF

End Sub

--- Next problem

Sub AddValidation ()

If Range("D1") < "" Then
With rOpt1Choices.Validation '<~~~what is rOpt1Choices?
..Delete
..Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop,
Operator:= _
xlBetween, Formula1:=Range("D1")
..IgnoreBlank = True
..InCellDropdown = True
..InputTitle = ""
..ErrorTitle = "Invalid Entry"
..InputMessage = ""
..ErrorMessage = "Please make a choice from the drop down
list"
..ShowInput = True
..ShowError = True
End With
End If

End Sub


" wrote:

I really need this to work for me and am hoping for a response so I am
going to keep posting to this until I get a response.
Great and many thanks to anyone who has any input or work arounds or
anything.




 
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 Load Error RhysPieces Excel Discussion (Misc queries) 0 June 8th 07 07:08 PM
Data Validation Error Dileep Chandran Excel Worksheet Functions 7 November 8th 06 12:22 PM
VBA validation & error reporting Kragelund Excel Programming 6 November 2nd 06 04:32 PM
validation error, urgent plz help daroc Excel Worksheet Functions 1 January 23rd 06 10:25 PM
Data Validation Error! keepitcool Excel Programming 2 August 19th 03 12:23 PM


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