Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Automating Excel from Access


Message #1 by "Tim Maher" <tim.maher@s...> on Tue, 26 Nov 2002 11:53:35 +0000
Hi,

I am trying to open existing excel workbooks from access. from within a
loop

            Set xlapp = CreateObject("Excel.Application")
            Set xlBook = GetObject(wksheet_cardiac_centre) 'holds path
and filename

            xlBook.Worksheets("Page 1").Activate
            Set xlSheet = xlapp.ActiveSheet

           xlsheet.cells(1, 1).Value = "Dated"

the above code doesnt seem to work for me,  Any ideas???

TIA

Tim
This e-mail transmission is strictly confidential and intended solely 
for the person or organisation to who it is addressed.  It may contain 
privileged and confidential information and if you are not the 
intended recipient, you must not copy, distribute or take any action 
in reliance on it.  
If you have received this email in error, please notify us as soon as 
possible and delete it.
This e-mail has been scanned using Anti-Virus software, however, 
Swansea NHS Trust accept no responsibility for infection caused by 
any virus received on the recipients system.




  Return to Index