Guys!
I have to agree with padawan, sometimes is very difficult to explain your needs when english is not the second language, but for what padawan ask is this, open a excel file (with data), then add "x" amount of rows at the beginning of the file, why all that space?, he needs to insert a pictures in BMP format, padawan for some of the same reason I quit the project here, but theres somethig I found it could be usefull its call VBScript Converter from ActiveState heres an example: after making a macro this come up
Workbooks.Open Filename:="C:\Proyecto\csv\T3683.csv.xls" Rows("1:10").Select Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbov +e Range("B6").Select ActiveCell.FormulaR1C1 = "Report" Range("C7").Select
Now I took that and put it into the VBScript and converted into this
use Win32::OLE; use constant xlDown => -4121; use constant xlFormatFromLeftOrAbove => 0; my $_app_object = (Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application')); $_app_object->Workbooks->Open({Filename => 'C:\\Proyecto\\csv\\T3683.c +sv.xls'}); $_app_object->Rows('1:10')->Select(); $_app_object->Selection->Insert({Shift => xlDown, CopyOrigin => xlForm +atFromLeftOrAbove}); $_app_object->Range('B6')->Select(); $_app_object->ActiveCell->{FormulaR1C1} = 'Report'; $_app_object->Range('C7')->Select();
Now One thing I could never find was Insert that is the command or instruction to insert rows??? Hope I could help and hope you could help thnaks

In reply to Re: I am frustrated with WIN32::OLE by ArmandoG
in thread I am frustrated with WIN32::OLE by padawan_linuxero

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.