I have a VBA library that does FTP, I'd like to do telnet as well. At the moment I'm shelling out to a Perl script that does the telnet based on a text file, but I'd like to drive the telnet connection natively from within the VBA. Does anyone have any source for this? I don't want to use an add-in, I need the code to be self-contained.
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
- Excel VBA run time error 450 from referencing a ra
相关文章
- Get column data by Column name and sheet name
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- How to prevent excel from truncating numbers in a
- numeric up down control in vba
- Declare a Range relative to the Active Cell with V
- What's the easiest way to create an Excel tabl
If you can use the MS WinSock control (also see using winsock in VBA)
More resources:
MSDN Library: Using the Winsock Control
(Visual Basic) Winsock Control
if not, you could use cmd.exe and
SendKeys
perhaps:Disclaimer: I copied the below code from the second of the links below, and modified it slightly for VBA.
SendKeys
is not the best or most reliable solution, but it was all I could find when I did this 12 years ago in my last job.More info:
Telnet & Excel - Microsoft.excel.programming
How to automate Telnet commands using VBScript