COM library putFiles giving error on VBA
Hi
I'm trying to use the COM object in VBA; after successful creation and initialization of a session object which I call m_session I try:
Dim transferResult As TransferOperationResult
transferResult = m_session.putFiles(localPath, remotePath)
also tried:
set transferResult = m_session.putFiles(localPath, remotePath)
But I always get an Error: "object reference not set to an instance of an object"
NOTE: I know m_session is OK, because when using it with m_session.ExecuteCommand('any UNIX cmd') it works fine
Working with:
Microsoft Windows XP Professional; Version 5.1.2600 Service Pack 3 Build 2600
Microsoft Visual Basic 6.5
WinSCP 5.1.7
WinSCP COM Assemmbly 5.1.7
Thanks for your help
PeBoe
I'm trying to use the COM object in VBA; after successful creation and initialization of a session object which I call m_session I try:
Dim transferResult As TransferOperationResult
transferResult = m_session.putFiles(localPath, remotePath)
also tried:
set transferResult = m_session.putFiles(localPath, remotePath)
But I always get an Error: "object reference not set to an instance of an object"
NOTE: I know m_session is OK, because when using it with m_session.ExecuteCommand('any UNIX cmd') it works fine
Working with:
Microsoft Windows XP Professional; Version 5.1.2600 Service Pack 3 Build 2600
Microsoft Visual Basic 6.5
WinSCP 5.1.7
WinSCP COM Assemmbly 5.1.7
Thanks for your help
PeBoe