Results 1 to 5 of 5
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Where to place this control?

    As can be seen from the attached pdf file I have a button that is located in the middle of the Excel spreadsheet. It works to do several thing to prepare


    a document for exporting to MS Access as a table.

    It works, but the button is located in an awkward place. It is located where the data will be located. It is okay that it is there now, but it clearly will be a problem
    when data is put in those cells.

    My question is where can I put it so it will be functional, but still available to the user who wants to prepare the Excel spreadsheet
    for exportingl?

    Any Help appreciated. Thank in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2017
    Posts
    1,679
    At top of sheet (above your table) add some empty rows;
    Use Freeze panes to set table header and rows above it always visible for user;
    Place your button above your table (at top of worksheet).

    The rows at top of page are also perfect place for SUM's, COUNT's etc. They will be always visible, and you can add data to your table without inserting rows or dragging cells with formulas to new location every time.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Ack!! I didn't want to do this, but it hurts to watch you try to import a spreadsheet. Now you want to have the users modify the spreadsheet......???

    Try the attached dB with the sample workbook you provided...

    Column "A" of the worksheet MUST have values to have that row imported. And the code ends when the cell in the worksheet is empty.
    If there are values in column A from row 6 to row 30, then there are values from row 40 to 45, only rows 6 to 30 will be imported.

    The code could be modified to find the last row with data, but I am tired and heading home.

    Look at the code to see where you could change settings...
    Attached Files Attached Files

  4. #4
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I am not sure what Freeze panes are. Do you have a reference?

    When you say place the button at the top of the table, do you mean completely out of the cell
    region?

    I just want to keep this basic.

    Any help appreciated. Thanks in advance.

    Lou Reed

  5. #5
    Join Date
    Apr 2017
    Posts
    1,679
    Freeze Panes:
    Activate a cell on worksheet;
    From Menu, open View. There is a menu item Freeze Panes (approximately in center of menu) - click on it;
    Now, when you scroll the worksheet down or right, rows above the cell you activated before and columns left at same cell remain always visible.
    Selecting Freeze panes, when it was activated previously, again unfreezes previous activation, i.e. all rows and columns can be hidden when scrolling the sheet.

    At top of page means in rows above table header.

    P.e. you create a table with column headers in A5:F5, select cell D6 and activate Freeze Panes. The area A1:C3 you use to place a button (so it will be always wisible). Into cell E1 you enter "Total:" , and into cell F1 you enter SUBTOTAL formula to calculate sum of filtered entries in F column of your table (NB! In my example I left out row 4 - because when you define a table, it will be better to have an empty row immediately above table header. You can hide this row, or set it's height p.e. to 2.).

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

Similar Threads

  1. Best place to start?
    By Koolaid in forum General Chat
    Replies: 6
    Last Post: 07-19-2017, 04:00 AM
  2. Best place to hire freelancer
    By Homegrownandy in forum General Chat
    Replies: 10
    Last Post: 04-20-2016, 03:00 AM
  3. how to place a multiply in a query
    By darwin in forum Queries
    Replies: 6
    Last Post: 05-14-2015, 03:56 PM
  4. Rounding up decimal place
    By swagger18 in forum Programming
    Replies: 4
    Last Post: 01-28-2011, 08:29 AM
  5. score and place query
    By ymds in forum Queries
    Replies: 1
    Last Post: 06-10-2010, 06:07 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