Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
identify open workbook in excel?
Bu Mihai
11/12/2007 10:00:00 AM
-i have an excel file ex.xls open;
-can i make a script that will search all opened excel files and if an
excel file is ex.xls then ex.xls it will be memorized in an ruby
variable? how can i do that?
tbx
--
Posted via
http://www.ruby-...
.
1 Answer
David Mullet
11/12/2007 10:38:00 PM
0
Bulhac Mihai wrote:
> -i have an excel file ex.xls open;
> -can i make a script that will search all opened excel files and if an
> excel file is ex.xls then ex.xls it will be memorized in an ruby
> variable? how can i do that?
>
> tbx
require 'win32ole'
# Connect to a running instance of Excel:
excel = WIN32OLE.connect('Excel.Application')
# Select your workbook by name from the Workbooks collection:
my_workbook = excel.Workbooks('ex.xls')
Further discussion here:
http://rubyonwindows.bl...
/search/l...
David
http://rubyonwindows.bl...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
identify open workbook in excel?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password