XML equivalent of VBA's XLdown

G

Guest

I want to import multiple ranges from multiple workbooks without opening
them. To do this I use the proceedure from J Walkenbach, nested into For Next
loops...

arg = "'" & path & "[" & filename & "]" & sheet & "'!" & Ref

Range = ExecuteExcel4Macro(arg)

My problem is the ranges are not uniform length. Does XML have an equivalent
to VBA's XLdown?

Using the Macro Recorder, 'Ref' would look something like (can it be
shortened to 1 line of code?)...

Range("AJ23").Select
Range(Selection, Selection.End(xlDown)).Select

I am running Office2003.

Thanks for any advice

Nick
 
G

Guest

Sorry that post should read...

XLM equivalent of VBA's XLdown and not XML

Still coming to grips with the different programming languages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top