Skip to content

Conversation

@sparkalyn
Copy link

This fixes an issue where spreadsheets that use aliases on columns greater than 51 get an error: "The element at position 0 cannot be found. "

This happens because the code to determine the 2nd character of the column reference (AA, AB, etc.) uses the mod operator. If the celI index is a multiple of 26, modulus returns 0 resulting in an error referencing the ColumnLookup array.

This change adds an IIF statement to return the length of the array (26) instead of the result of the modulus if that result is 0.

Fixes "The element at position 0 cannot be found. "
for spreadsheets that assign aliases to columns ?Z columns (AZ, BZ, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant