CQL & Strings...

Dim sr1 as shaperange

Dim palVal as string

palVal = RGB(28, 18, 205) ' Here is my string. I put it here so it's easy to change per various scenarios that will be below. but in this case I only used one. 


Set sr1 = ActiveSelection.Shapes.FindShapes(Query:="@fill.color= RGB(28,18,205)") ' Here is the original setup but I want to replace this with palVal like below

Set sr1 = ActiveSelection.Shapes.FindShapes(Query:="@fill.color= 'palVal'") ' So i'd like to pull the value by using this key word / string "palVal"

But strings and CQL are confusing. I want to pull by value. But by using a keyword to make changing all the values easier. Can anyone assist me? 

Parents Reply Children
No Data