Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2013
    Location
    NYC
    Posts
    7

    Displaying scrollbars in embedded Excel object

    While I have no problem displaying my data to my embedded Excel object on my Access form, I am have been having a lot of trouble displaying the scrollbars for it. (Do I need to use the 'New' keyword for my workbook when I'm trying to refer to an object I've already placed on the form in Design mode?). Can anyone point out what I'm doing wrong here? Thanks!



    Dim internalWorkbook As Excel.Workbook
    Dim internalSheet As Excel.Worksheet
    'Screen output.
    Set internalWorkbook = myGrid.Object
    internalWorkbook.Application.DisplayScrollBars = True
    Set internalSheet = internalWorkbook.Sheets(1)
    internalSheet.ScrollArea = "" 'Enable scrolling for entire sheet.


  2. #2
    Join Date
    Jan 2013
    Location
    NYC
    Posts
    7
    I have also tried this alternative to specify it at the sheet level instead of at the workbook level:

    internalSheet.Range(myScrollArea).Application.Disp layScrollBars = True

    Neither approach throws any error, but neither is working to display the scroll bars.

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

Similar Threads

  1. Datasheet Scrollbars
    By Paul H in forum Forms
    Replies: 11
    Last Post: 10-21-2011, 09:29 AM
  2. Scrollbars on a sub form
    By Paul H in forum Access
    Replies: 3
    Last Post: 09-12-2011, 01:26 PM
  3. Replies: 3
    Last Post: 10-01-2010, 07:04 PM
  4. Replies: 2
    Last Post: 02-19-2010, 08:05 PM
  5. Replies: 0
    Last Post: 02-04-2009, 04:47 AM

Tags for this Thread

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