[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: reading data from excel

Cool Wong

5/22/2008 10:07:00 AM

I cannot read excel in require 'fox16'. How can I do to run excel file?
--
Posted via http://www.ruby-....

3 Answers

nnnnon@gmail.com

5/23/2008 8:24:00 AM

0

On May 22, 6:06 pm, Cool Wong <coolwon...@yahoo.com> wrote:
> I cannot read excel in require 'fox16'. How can I do to run excel file?
> --
> Posted viahttp://www.ruby-....

win32ole

SAL

5/13/2009 9:00:00 PM

0

Perfect! Thank you

"Jacob Skaria" wrote:

> When you record a macro ;each single action is recorded....the below code
> does the same 3 actions///
>
> Sheets("Sheet1").Rows(1).Delete
> Sheets("Sheet1").Columns(1).Delete
> Columns("A:A").Insert Shift:=xlToRight
>
>
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Sal" wrote:
>
> > Is there a better way to delete row 1 in Sheet1 than this
> >
> > Sheets("Sheet1").Select
> > Rows("1:1").Select
> > Selection.Delete Shift:=xlUp
> > Range("A1").Select
> >
> > Is there a better way to delete Column B in Sheet1 than this?
> >
> > Sheets("Sheet1").Select
> > Columns("B:B").Select
> > Selection.Delete Shift:=xlToLeft
> >
> > Is there a better way using Sheet1, to Cut Column D and paste the cut cells
> > in front of Column A than this?
> > Sheets("Sheet1").Select
> > Columns("D:D").Select
> > Selection.Cut
> > Columns("A:A").Select
> > Selection.Insert Shift:=xlToRight
> >

SAL

5/13/2009 9:01:00 PM

0

Excellent. Thank you for the help.

"Jacob Skaria" wrote:

> You can avoid the Workbook and sheetname..
>
> With ActiveWorkbook.Sheets("Sheet1")
> .Rows(1).Delete
> .Columns(1).Delete
> .Columns("D:D").Cut
> .Columns("A:A").Insert Shift:=xlToRight
> End With
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Jacob Skaria" wrote:
>
> > When you record a macro ;each single action is recorded....the below code
> > does the same 3 actions///
> >
> > Sheets("Sheet1").Rows(1).Delete
> > Sheets("Sheet1").Columns(1).Delete
> > Columns("A:A").Insert Shift:=xlToRight
> >
> >
> >
> > If this post helps click Yes
> > ---------------
> > Jacob Skaria
> >
> >
> > "Sal" wrote:
> >
> > > Is there a better way to delete row 1 in Sheet1 than this
> > >
> > > Sheets("Sheet1").Select
> > > Rows("1:1").Select
> > > Selection.Delete Shift:=xlUp
> > > Range("A1").Select
> > >
> > > Is there a better way to delete Column B in Sheet1 than this?
> > >
> > > Sheets("Sheet1").Select
> > > Columns("B:B").Select
> > > Selection.Delete Shift:=xlToLeft
> > >
> > > Is there a better way using Sheet1, to Cut Column D and paste the cut cells
> > > in front of Column A than this?
> > > Sheets("Sheet1").Select
> > > Columns("D:D").Select
> > > Selection.Cut
> > > Columns("A:A").Select
> > > Selection.Insert Shift:=xlToRight
> > >