I have to upload the content of chart CH01 (65000 records in size) to a SQL database.
I use the macro below for that task.
The macro works fine. However, when the macro reaches the end, the qlikview program wont close. In the lower left corner of QlikView there is a message: "Macro running".
The document is however closed but the application is not.
Another strange thing to note here is that the application will close if i limit the no of records in the loop to 100. (instead of 65000)
This annoying freeze/hang of the macro prevents my intention of planning the document into task planner. Any help would be appreciated.
Sub upload
Const adOpenStatic = 3
Const adLockOptimistic = 3
'Establish a connection
Set objConnection = CreateObject("ADODB.Connection")