Skip to content

Commit

Permalink
Fixed JuliaEvalVBA - broken in 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
PGS62 committed Dec 18, 2021
1 parent 42c61ee commit 7552afd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JuliaExcel"
uuid = "661490ff-676f-49f7-9f60-bdb0e4e6656a"
authors = ["Philip Swannell"]
version = "0.2.5"
version = "0.2.6"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
1 change: 1 addition & 0 deletions vba/JuliaExcel.xlam/AuditSheetComments.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version Date Time Author Comment
87 18-Dec-2021 18:39 Philip Swannell Fixed bug in JuliaEvalVBA - bug was introduced by previous change and made JuliaEvalVBA fail whenever returning strings.
86 15-Dec-2021 16:17 Philip Swannell Improved handling of string length limits.
85 15-Dec-2021 12:31 Philip Swannell JuliaLaunch now checks for existence of wsl.exe
84 14-Dec-2021 19:33 Philip Swannell Amended method GetStringLengthLimit. Now returns 256 on Excel 2013.
Expand Down
2 changes: 1 addition & 1 deletion vba/JuliaExcel.xlam/modSerialise.bas
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Function Unserialise(Chars As String, AllowNesting As Boolean, ByRef Depth As Lo
Case 35 '# vbDouble
4 Unserialise = CDbl(Mid$(Chars, 2))
5 Case 163 '£ (pound sterling) vbString
6 If StringLengthLimit >= 0 Then 'Calling from worksheet formula, StringLengthLimit applies to elements of an array
6 If StringLengthLimit > 0 Then 'Calling from worksheet formula, StringLengthLimit applies to elements of an array
7 If Len(Chars) > IIf(Depth = 1, 32768, StringLengthLimit) Then 'Remember Chars includes an initial type indicator character of "£"
8 If StringLengthLimit = 32768 Then
9 Throw "Data contains a string of length " & Format(Len(Chars) - 1, "###,###") & _
Expand Down
Binary file modified workbooks/JuliaExcel.xlam
Binary file not shown.

0 comments on commit 7552afd

Please sign in to comment.