Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 2e8c63c

Browse files
authored
Merge pull request #5 from marmeleiro/v1.3.2
appendChildメソッドの修正及びExcel異常終了対応
2 parents dbe5572 + 77f0398 commit 2e8c63c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/example.xlsm

1.11 KB
Binary file not shown.

src/kintoneDataReaderforVBA.cls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
88
Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = False
1010
' -----------------------------------------------------------------------
11-
' kintoneDataReaderforVBA v1.3.1
11+
' kintoneDataReaderforVBA v1.3.2
1212
' -Dictionary.cls と JsonConverter.bas のインポートが必要です。下記から取得してください。
1313
'   Dictionary.cls:v1.4.1で動作確認
1414
'   https://github.com/VBA-tools/VBA-Dictionary
@@ -867,6 +867,7 @@ Private Function kvu_GetFieldValue(ByVal FieldType As String, ByVal rec As Varia
867867
Select Case FieldType
868868

869869
Case "CREATOR", "MODIFIER"
870+
Application.Wait [now()+"00:00:01"] 'Excelが落ちてしまう場合があるので回避策
870871
If kvu_isName Then
871872
kvu_GetFieldValue = rec("name")
872873
Else
@@ -994,6 +995,7 @@ End Function
994995
Private Sub kvu_ClearRecordset()
995996
kvu_RecordCount = 0
996997
kvu_TotalRecordCount = 0
998+
Application.Wait [now()+"00:00:01"] 'Excelが落ちてしまう場合があるので回避策
997999
Erase kvu_Recordset
9981000
End Sub
9991001

@@ -1029,7 +1031,7 @@ Private Function knt_EncodeUrl(ByVal sWord As String) As String
10291031
Set d = CreateObject("htmlfile")
10301032
Set elm = d.CreateElement("span")
10311033
elm.setAttribute "id", "result"
1032-
d.appendChild elm
1034+
d.body.appendChild elm
10331035
d.parentWindow.execScript "document.getElementById('result').innerText = encodeURIComponent('" & sWord & "');", "JScript"
10341036
knt_EncodeUrl = elm.innerText
10351037
End Function

0 commit comments

Comments
 (0)