I still work with X3. I read that X3 has cql query as a new feature. So I try:Set sr = ActivePage.Shapes.FindShapes(Query:="@fill.color.cmyk[.c=0 and .m=24 and .y=47 and .k=45]")and I tried:Set sr = ActivePage.Shapes.FindShapes(Query:="@fill.color.cmyk (0,24,47,45)")But no matter what I try the shaperange contains all objects on the page.The old school findshapes does work: Set sr = ActivePage.Shapes.FindShapes(Type:=cdrTextShape)Please help me, I want to use the query.
Try to look here
https://community.coreldraw.com/talk/coreldraw-graphics-suite-2018/f/coreldraw-2018/59214/cql-using-variables-in-query
Thank you, but I just need the query to work, I don't need variables in the search condition. I guess this is about me using X3. Or should I use .CreateSelection after the code?Set sr = ActivePage.Shapes.FindShapes(Query:="@fill.color.cmyk[.c=0 and .m=24 and .y=47 and .k=45]").CreateSelectionThat would be strange, since I don't have to do that here : Set sr = ActivePage.Shapes.FindShapes(Type:=cdrTextShape)