What do you mean with "too long"?
Too long for the line in a macro?
BTW: ggriffit has a good point here:
If you want to exchange data to/from an Excel Sheet, the TransferSpreadsheet method would be the best way.
Help file (F1) should give you good examples on how to apply the syntax for your case.
If you just want to open the spreadsheet,
create a button on the form from which you want to open it, display its properties,
go to the "Events" tab,
in the Line "OnClick" click on the three dots to the right,
paste this between Private Sub... and End Sub:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.