Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2010, 06:22 AM
ppenn
Guest
 
Posts: n/a
Smile Open Excel from Access

Hi, I am not fully conversant with Access/Excel 2007 and I used to open an Excel spreadsheet from Access with the following code
Set db = CurrentDb()
Set appExcel = New Excel.Application
Set wbkNew = appExcel.Workbooks.Open(Filename:="Q:\Contract\Exp ired.xls")
wbkNew.RefreshAll
appExcel.Visible = True

I now need to do the same thing in Access 2007 to Excel 2007. I am not sure what to change can anyone help please

Thanks in advance
Peter
 
Old February 23rd, 2010, 08:42 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

I am not sure if there are any changes in Access 2007. But surely the code you have posted will work in Excel 2007 also

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
open excel object stored in access subhanak Access 1 May 6th, 2009 08:46 AM
Import Data from Open Excel Sheet to Access chintu4u Pro VB Databases 0 May 15th, 2006 01:24 AM
Open an Excel file using Access, pls help! sunny76 Access VBA 9 June 29th, 2005 02:14 AM
How to open Excel File in Access losartan Access 1 January 24th, 2005 06:08 PM
Open Second excel session magali VB How-To 0 September 27th, 2004 08:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.