• Complain

Michael Schmalz - Integrating Excel and Access

Here you can read online Michael Schmalz - Integrating Excel and Access full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2006, publisher: OReilly Media, Inc, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Michael Schmalz Integrating Excel and Access
  • Book:
    Integrating Excel and Access
  • Author:
  • Publisher:
    OReilly Media, Inc
  • Genre:
  • Year:
    2006
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Integrating Excel and Access: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Integrating Excel and Access" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

In a corporate setting, the Microsoft Office Suite is an invaluable set of applications. One of Offices biggest advantages is that its applications can work together to share information, produce reports, and so on. The problem is, there isnt much documentation on their cross-usage. Until now.
Introducing Integrating Excel and Access, the unique reference that shows you how to combine the strengths of Microsoft Excel with those of Microsoft Access. In particular, the book explains how the powerful analysis tools of Excel can work in concert with the structured storage and more powerful querying of Access. The results that these two applications can produce together are virtually impossible to achieve with one program separately.
But the book isnt just limited to Excel and Access. Theres also a chapter on SQL Server, as well as one dedicated to integrating with other Microsoft Office applications. In no time, youll discover how to:
Utilize the built in features of Access and Excel to access data
Use VBA within Access or Excel to access data
Build connection strings using ADO and DAO
Automate Excel reports including formatting, functions, and page setup
Write complex functions and queries with VBA
Write simple and advanced queries with the Access GUI
Produce pivot tables and charts with your data
With Integrating Excel and Access, you can crunch and visualize data like never before. Its the ideal guide for anyone who uses Microsoft Office to handle data.

Michael Schmalz: author's other books


Who wrote Integrating Excel and Access? Find out the surname, the name of the author of the book and a list of all author's works by series.

Integrating Excel and Access — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Integrating Excel and Access" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Index
[]
Index
[]Access
Index
[]
Index
[]code examplescodingcrosstab queries
Index
[]
Index
[]Excel
Index
[]formatting techniques
Index
[]
Index
[]integration
Index
[]
Index
[]
Index
[]
Index
[]
Index
[]
Index
[]
Index
[]Range object (Excel)
Index
[]
Index
[]tables
Index
[]
Index
[]VLOOKUP statements
Index
[]Word
Index
[]XML files
A.1. Application Object

The Application object contains many properties and methods that can be very useful. In some cases, the collections of objects contained under the Application object also appear in the Workbook and Worksheet objects. When that is relevant, I'll note it in the text. In the examples shown, assume that the following code has already been entered in the VBA module from Access:

Dim xlapp as Excel.ApplicationSet xlapp = New Excel.Application

By doing this, the variable xlapp can be used to get the properties and methods discussed below.

A.1.1. Application Object Properties

The Application object's properties include a number of key pieces that provide your automation with a perspective on Excel, similar to the perspective users get through a GUI.

A.1.1.1. ActiveCell

This property is a range object that references the active cell in the application. If you have multiple workbooks open, and each has multiple worksheets, it refers to the active cell in the active workbook on the active sheet. If you have a range selected on the active worksheet, it refers to the cell in the range currently showing in the Name Box on the formula bar. The property returns a Range object and is read-only.

A.1.1.2. ActiveChart

This property returns the active embedded chart or chart sheet. If there are no active charts, this property returns Nothing . This property is read-only.

A.1.1.3. ActivePrinter

The ActivePrinter property returns the name of the active printer; this is the printer that comes up when you go to File Picture 1 Print on the menu. This is a property that you can read and write. Programming this property is very useful if you know the names of the printers available and you want to print a workbook or worksheet to a specific printer. This could come in handy if you automate Excel reports through Access and want to print reports to different printers. For example, if you work in an organization that has network printers in different locations, you can set code to automatically print different worksheets to each printer. Your best bet to get the exact names of your printers is to print something to the printer, go into the Immediate Window in Excel, and type in:

? Application.ActivePrinter

This formula gives you the exact name of your printer. The following code sets the current printer to the Microsoft Document Image Writer, if it is an installed printer in the same location.

xlapp.ActivePrinter = "Microsoft Office Document Image Writer on Ne00:"
A.1.1.4. ActiveSheet

The ActiveSheet property returns a Sheet object that represents the current active sheet for the application. There is also an ActiveSheet property available as part of the Workbook object that returns the active sheet for that particular workbook. This property is useful to set a variable equal to the active sheet to work with it. If you have a variable called xlws and want it to refer to the active sheet for the application, the following code shows how. The ActiveSheet property is read-only.

Set xlws = xlapp.ActiveSheet
A.1.1.5. ActiveWorkbook

The ActiveWorkbook property returns a Workbook object that represents the currently active workbook in Excel. While you will generally work on a specific workbook, this can be useful when you have code working on multiple workbooks. You can set your variable to refer to the currently active workbook; note that if the active workbook changes after you set your variable, the variable still refers to the workbook that was active when it was set. If you have a variable called xlwb and you want to refer to the active workbook, see the following line of code. The ActiveWorkbook property is read-only.

Set xlwb = xlapp.ActiveWorkbook
A.1.1.6. AddIns

The AddIns property is a collection of all of the Add-Ins available to Microsoft Excel. To see all of the Add-Ins available, use an AddIn object and a For Each...Next loop to cycle through all of them. That may be useful from Excel, but from Access your use for this generally revolves around seeing whether a particular Add-In is installed. For example, the following If...Then statement only runs if the Analysis ToolPak is installed.

On Error Resume NextIf xlapp.AddIns("Analysis ToolPak").Installed = True Then MsgBox xlapp.AddIns("Analysis ToolPak").Name & _ " is installed", vbInformationEnd If

You need to have the On Error Resume Next line as the first line because if the particular Add-In is not available on the computer (versus being on the Add-Ins list but not installed), referring to it by title generates an error. It is important that the string needed to bring up the AddIn object is in the Title Property, which is not the same as the Name property. The Title property of the AddIn object is not documented in Excel or on the object browser, but it is available. Since Add-Ins are referred to by an Index , you can loop through the Add-Ins by going from 1 to the count of the number of Add-Ins. The following code gives you a message box with the title of each AddIn object. You need an integer variable called x to use this code.

For x = 1 To xlapp.AddIns.CountMsgBox xlapp.AddIns(x).Title, vbInformationNext x
A.1.1.7. CalculateBeforeSave

This is a property that you can read and write. Generally, you want this property to be trUE . However, there may be times when you don't want workbooks recalculated before they are saved. In those cases, you can set this property to FALSE using the following line of code:

xlapp.CalculateBeforeSave = False

If you change this property for a particular purpose, be sure to change it back at the end of the code.

A.1.1.8. CalculateState

This property is a read-only property that tells whether Excel is currently performing calculations. This is useful if you want to wait until all calculations are done before running a portion of code. There are three constants that can be returned (the integer value of the constant is in parenthesis): xlDone (0), xlCalculating (1), and xlPending (2). Generally, you will check that the property is equal to 0, which means that there are no calculations being performed.

A.1.1.9. Caption

This is a property that you can read and write, which gives you the name on the Title Bar of Excel. You might want to set this if you build an application that you want to show up differently.

A.1.1.10. DisplayAlerts

This is a property that you can read or write, which returns a Boolean value. If you set it to FALSE , while your VBA code runs, alerts are automatically given the default response.

A.1.1.11. DisplayFullScreen

This is a property that you can read and write, which returns a Boolean value. Generally, this property is set to TRUE if you need more space to display a report, chart, etc. You also want to have an event programmed that returns the screen back to normal by setting this property to FALSE .

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Integrating Excel and Access»

Look at similar books to Integrating Excel and Access. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Integrating Excel and Access»

Discussion, reviews of the book Integrating Excel and Access and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.