Results 1 to 3 of 3
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Intellisence within code behind forms

    I'm trying to determine why Intellisense is not working throughout my DB. I've compiled and their are no problems. Here is some sample code:

    Dim xlApp As Object
    Dim wb1 As Workbook
    Dim sheetExcel As Worksheet
    Dim shapeExcel As Shape

    Set xlApp = New Excel.Application
    Set wb1 = xlApp.Workbooks.Open(Environ$("USERPROFILE") & "\documents\" & strFileName & ".xlsx")
    Set sheetExcel = wb1.Sheets("Auto Submit Calculations")
    Set shapeExcel = sheetExcel.Shapes.AddLabel(msoTextOrientationHoriz ontal, 617, 70, 35, 35)



    set shapeExcel = nothing
    set sheetExcel = nothing
    set wb1 = nothing
    set xlApp = nothing
    The intellisence works on everything except xlApp. I can't determine the simple solution.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    You're using late binding, so no intellisense.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    I should have added that you can develop with early binding to get intellisense, then switch to late binding when ready to distribute.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 10-23-2013, 08:11 AM
  2. Replies: 5
    Last Post: 01-16-2013, 03:48 PM
  3. Multiple forms or embedded sub-forms
    By Juicejam in forum Forms
    Replies: 2
    Last Post: 08-23-2011, 07:31 AM
  4. Replies: 1
    Last Post: 01-04-2011, 05:04 AM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums