Jump to content

Copying columns from one Excel doc to another doc


dash007
 Share

Recommended Posts

Hi all,

Just started to use the ExcelCOM_UDF.au3 and found it to be a great but also a bit complex. Thought i might ask ideas as to how I might be able to automate my task using this include.

I have an excel document that has about 25 columns and about 300 rows. What I need (as an example) is to copy column 5 from Book1.xls to column 1 of Book2.xls and then Column 3 from Book1.xls to Column2 of Book2.xls and so on and then save the new excel as a new file. Please note this is just an example.

I started trying to use :

_ExcelCopy($oBook, $sRangeOrRowStart, $iColStart = 1, $iRowEnd = 1, $iColEnd = 1)

However I don't know how to specify "$sRangeOrRowStart". I looked at the include and found that $sRangeOrRowStart - Either an A1 range, or an integer row number to start from if using R1C1 but can find any example of it in action. Can someone point me in the right direction please. Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...