wordpress statistics
  • Today is Tuesday, May 22, 2012

3 Responses to “Calendar and Toolbars”

  1. This is the first time I am coming to this page. Good stuff! :-) Is it possible to write an access macro for a linked excel table that can ativate another macro within the excel table?

  2. Welcome to the Site and thank you for the compliments.

    It is Possible. I will publish a Post at a later date with more details. In the meantime try this: Write an Automacro first in your Excel File.

    Open your Excel File (say Test.xls) and display the VB Module (Tools – > Macro – > Visual Basic Editor).

    Double-Click on the Thisworkbook object at the left side window. Its empty Code Module will display at the right side . Select Workbook from the top control where (General) is shown. Two lines of Code will display automatically as shown below except the middle line. The middle line you have to write. If the Code displayed is not the Workbook_Open() Event Procedure then select Open from the (Declarations) control above.

    Private Sub Workbook_Open()
    MsgBox “Hi, Muscat Santra”
    End Sub

    Save the Excel file as C:\Test.xls.

    Write the following Code inside a Click Event Procedure of a Command Button in a Form to Open the Excel File:

    Call Shell(“C:\Program Files\Microsoft Office\Office\Excel.exe C:\Test.xls”)

    The Excel File will open and show a warning message about the Macro. Click on Enable Macros button after that you will see the Welcome Message that we have written in the Workbook Open Event Procedure.

    I will bring out more details on this, like how to check and find which excel file is linked into Access and how to find its Name with code and automatically open the Linked Excel File. How to Link External Data Files, like Dbase, Excel, ODBC etc. will be explored.

    Regards,

  3. I am the first time on this site and am really enthusiastic about and so many good articles. I think it’s just very good.
    Always yours Mr. Cialis

Trackbacks/Pingbacks

  1. Conveyancing Solicitor

Leave a Reply

You must be logged in to post a comment.