Microsoft
Software
Hardware
Network
Question : How to import data into excel sheet from remote unix box.
In my remote unix box I have a PERL script to extract data from Oracle data base.
The data will be delimitted with tab sequence.
I would like to import the data from the unix machine directly into excel sheet.
Currently I ftp the data into my Windows machine and then open it using excel.
Excel asks me to confirm how the fileds are seperated and after I confirm tab is the delimitter
it produces the expected output.
I would like to automate the FTP'ng part and conversion part.
Can we automate this using Excel or do we need anyother S/w. (I have VC++ available with me).
A sample code snippet will be of great help.
Answer : How to import data into excel sheet from remote unix box.
I believe the FTP'ng part can be done but I haven't tried. (It can be done in Visual Basic) I know the conversion part can be done.
The easy way is. Launch Excel...Tools...Macro...Re
cord New Macro....
Proceed to Ftp your file and do the conversion as usual. When you are done, stop the macro recording.
the next time you want to do the same thing, Tools...Macro...Macro...an
d run your macro. Alternatively, you can attach a shortcut keyboard stroke b4 you start recording your macro.
If the filename of the file you are ftp'ng and converting is different each time, you may want to modify the macro manually to allow you to enter the filename or select the file. Microsoft Office macros are in visual basic.
A basic knowledge of visual basic can help tremendously in utilising macros. Otherwise, the usual Record New macro will do.
Random Solutions
Rolling back transactions in Access (using ADO, DAO, Access code, whatever)
Creating a timer on a PowerPoint slide
DataGridView AutoResizeColumns() not working with
SBS 2008 Updates in progess never complete
How do I retrieve text from a website
Installing MS-DOS 3.20 in Bochs
Layout Suggestions
Keyboard shortcut to close database window
Exchange 2010 SMTP Relay
Strange Excel Error: "Insufficient system resources"