@@ -8,7 +8,7 @@ Attribute VB_Creatable = False
8
8
Attribute VB_PredeclaredId = False
9
9
Attribute VB_Exposed = False
10
10
' -----------------------------------------------------------------------
11
- ' kintoneDataReaderforVBA v1.3.1
11
+ ' kintoneDataReaderforVBA v1.3.2
12
12
' -Dictionary.cls と JsonConverter.bas のインポートが必要です。下記から取得してください。
13
13
' Dictionary.cls:v1.4.1で動作確認
14
14
' https://github.com/VBA-tools/VBA-Dictionary
@@ -867,6 +867,7 @@ Private Function kvu_GetFieldValue(ByVal FieldType As String, ByVal rec As Varia
867
867
Select Case FieldType
868
868
869
869
Case "CREATOR" , "MODIFIER"
870
+ Application.Wait [now()+"00:00:01" ] 'Excelが落ちてしまう場合があるので回避策
870
871
If kvu_isName Then
871
872
kvu_GetFieldValue = rec("name" )
872
873
Else
@@ -994,6 +995,7 @@ End Function
994
995
Private Sub kvu_ClearRecordset ()
995
996
kvu_RecordCount = 0
996
997
kvu_TotalRecordCount = 0
998
+ Application.Wait [now()+"00:00:01" ] 'Excelが落ちてしまう場合があるので回避策
997
999
Erase kvu_Recordset
998
1000
End Sub
999
1001
@@ -1029,7 +1031,7 @@ Private Function knt_EncodeUrl(ByVal sWord As String) As String
1029
1031
Set d = CreateObject("htmlfile" )
1030
1032
Set elm = d.CreateElement("span" )
1031
1033
elm.setAttribute "id" , "result"
1032
- d.appendChild elm
1034
+ d.body. appendChild elm
1033
1035
d.parentWindow.execScript "document.getElementById('result').innerText = encodeURIComponent('" & sWord & "');" , "JScript"
1034
1036
knt_EncodeUrl = elm.innerText
1035
1037
End Function
0 commit comments