Omit Value from MultiValue Parameter iLogic

Omit Value from MultiValue Parameter iLogic

Anonymous
Not applicable
344 Views
2 Replies
Message 1 of 3

Omit Value from MultiValue Parameter iLogic

Anonymous
Not applicable

Hello

 

I have created a MultiValue Parameter with the Sheet names from an embedded spreadsheet. However I can't seem to make it not look at certain sheets.

Is there a way to delete certain values?

 

I tried skipping an add occurrence (don't add "x" to list) within a for using an if but it doesn't work. 

 

SyntaxEditor Code Snippet

wb = GoExcel.Application.ActiveWorkbook
Dim sheetNames as New ArrayList
For Each ws In wb.Worksheets
    If ws  IsNot  "x" Then 'dont add this
    sheetNames.Add(ws.Name)
    End If
Next ws
MultiValue.List("TESTLIST") = sheetNames

 

0 Likes
Accepted solutions (1)
345 Views
2 Replies
Replies (2)
Message 2 of 3

SašoPrijatelj
Advocate
Advocate
Accepted solution

Hi,

 

try to replace

 

If ws  IsNot  "x" Then

 

with

 

If ws.name <> "x" Then

 

 

-----------------------------------------------------------------------
AutoDXF - automatic flat pattern creation and batch export to DXF for Inventor

Please use "Accept as Solution" & give "Kudos" if this response helped you.
0 Likes
Message 3 of 3

Anonymous
Not applicable

This did the trick, thanks!

0 Likes