- Nigel Pilsbury
- PowerBuilder
- Tuesday, 25 January 2022 04:54 PM UTC
Hi all,
I am trying to convert Excel macro commands into Powerbuilder script.
The following macro script validates a column against a named list...
Sub SetColumnList()
' SetColumnList Macro
' Assigns a Named List to a column
Range("G3:G65536,G1").Select
Range("G1").Activate
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=StatusList"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Validation"
.ErrorTitle = "Error"
.InputMessage = "Please select from list"
.ErrorMessage = "Entered value not found in list"
.ShowInput = True
.ShowError = True
End With
End Sub
I'm trying to convert this script so it will run in my Powerbuilder window.
Thanks for the help with this.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.