Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kieron White
 
Posts: n/a
Default Opening Access From Excel

I have an excel spreadsheet and I would like to know whether or not it is
possible to open an Access database from excel using VBA?

Any help would be appreciated.

Many thanks,

Kieron White

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Opening Access From Excel

Hi Kieron

Only open or get information from it into Excel

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kieron White" wrote in message ...
I have an excel spreadsheet and I would like to know whether or not it is
possible to open an Access database from excel using VBA?

Any help would be appreciated.

Many thanks,

Kieron White



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Opening Access From Excel

Here do you have a few tips

To open a file

Sub test()
Dim ac As Object
On Error Resume Next
Set ac = GetObject(, "Access.Application")
If ac Is Nothing Then
Set ac = GetObject("", "Access.Application")
ac.OpenCurrentDatabase "C:\OrderDatabase.mdb"
ac.UserControl = True
End If
AppActivate "Microsoft Access"
End Sub


To get info form the file see
http://www.rondebruin.nl/accessexcel.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron de Bruin" wrote in message ...
Hi Kieron

Only open or get information from it into Excel

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kieron White" wrote in message ...
I have an excel spreadsheet and I would like to know whether or not it is
possible to open an Access database from excel using VBA?

Any help would be appreciated.

Many thanks,

Kieron White





  #4   Report Post  
Posted to microsoft.public.excel.misc
Kieron White
 
Posts: n/a
Default Opening Access From Excel

Ron,

Many thanks for this. It works a treat.

Thank You

"Ron de Bruin" wrote:

Here do you have a few tips

To open a file

Sub test()
Dim ac As Object
On Error Resume Next
Set ac = GetObject(, "Access.Application")
If ac Is Nothing Then
Set ac = GetObject("", "Access.Application")
ac.OpenCurrentDatabase "C:\OrderDatabase.mdb"
ac.UserControl = True
End If
AppActivate "Microsoft Access"
End Sub


To get info form the file see
http://www.rondebruin.nl/accessexcel.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron de Bruin" wrote in message ...
Hi Kieron

Only open or get information from it into Excel

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Kieron White" wrote in message ...
I have an excel spreadsheet and I would like to know whether or not it is
possible to open an Access database from excel using VBA?

Any help would be appreciated.

Many thanks,

Kieron White






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Linking Large Access Table into Excel Steven M. Britton Links and Linking in Excel 1 December 30th 05 11:28 PM
Merging in Excel from Word, Excel, or Access RS Excel Discussion (Misc queries) 2 December 16th 05 05:16 PM
Excel and Access talking GJR3599 Excel Discussion (Misc queries) 0 March 29th 05 04:59 PM
opening multiple instances of excel John B Excel Discussion (Misc queries) 4 January 28th 05 11:31 PM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"