vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft VBA Training and help » VBA

VBA

resolvedResolved · Low Priority · Version Standard

Pritesh has attended:
Excel VBA Intro Intermediate course

VBA

Can you link Excel and Access via VBA?

RE: VBA - Excel - Access integration

You certainly can, and there's scope for some very useful integrations. Things can get complicated, though.

Firstly, you need to have the libraries for both applications loaded. If you are in Excel, this means that you also need the Access and ADODB libraries loaded. Do this through the >Tools >References dialog.

Obviously it depends on what you want to do, but you might like to look at:
-- The Range.CopyFromRecordset method
-- The QueryTable object (a refreshable range that is permanently linked to a Recordset).

/Roy


 

VBA tip:

Empty The Clipboard with CutCopyMode

After each Copy/Paste operation in VBA, you should use the following line of code to empty the clipboard. This ensures that the computer memory doesn't overload:

ActiveSheet.Paste
Application.CutCopyMode = False

View all VBA hints and tips


Server loaded in 0.07 secs.