J
john
Is it possible to open a specific excel spreadsheet and
specific worksheet through access vb code?
specific worksheet through access vb code?
http://www.mvps.org/access/modules/mdl0006.htm at "The-----Original Message-----
Take a look at
objXL.Application.Workbooks.Open "C:\MyFolder\MyBook.xls"-----Original Message-----
Replace
objXL.Application.workbooks.Add
Set objActiveWkb = objXL.Application.ActiveWorkBook
with something like
http://www.mvps.org/access/modules/mdl0006.htm at "The-----Original Message-----
Take a look at
-----Original Message-----
I never noticed that the sample code in that example deliberately doesn't
save!
Change
objActiveWkb.Close savechanges:=False
to
objActiveWkb.Close savechanges:=True
(or leave out the savechanges:=<value> completely, and it'll prompt the user
to save if changes were made)
--
Doug Steele, Microsoft Access MVP
.
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.