Excel document that will auto fill in order form Office 365

Jodi K 0 Reputation points
2026-11-25T18:31:59.58+00:00

Good morning,

I'm trying to create an Excel document that will auto fill when a box is checked on a different tab.

What I have so far.

Tab 1 (Order Form)

Tab 2 (form) fill in boxes to fill in the top of the order form. I would like this to pop up on the main screen to be filled out first.

Tab 3 (sheet 1) part of the above form. I wonder if this tab is redundant and can be deleted and the info just go on the main sheet.

Tab 4- Office Supplies

Tab 5 - Hygiene

Tab 6- Janitorial

Tab 7- Linen

Tab 8- Officer

Tab 9- Resident

Tab 10- Kitchen

Tabs 4-10 are the items we carry which included a checkbox. When the box is checked the row is highlighted (to make sure they get the right item) then I want that line to be copied to Tab 1 (Order Form) starting at B-11. This will consist of Sim #, Description, Sold As, and Cost/Unit. As the items are checked or unchecked they will be copied or removed from the Order Form with the next item going into the next available line.

I also want everything locked except for the check boxes and a couple lines on the order form.

I have Office 365 but from what I can find it looks like I will need a VBA but I can't seem to get them to work.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

3 answers

Sort by: Most helpful
  1. Nafisat Badmus 80 Reputation points
    2026-11-25T23:07:30.9+00:00

    You don't need VBA for any of this.

    1. Make each supply tab a table (click in the list, then Ctrl+T) with the same column order on every tab: Order (checkbox) | Sim # | Description | Sold As | Cost/Unit. Give each table a name under Table Design, for example tOffice, tHygiene, tJanitorial, tLinen, tOfficer, tResident, tKitchen.
    2. Checkboxes: select the Order column and choose Insert > Checkbox. These are cell checkboxes, so each cell is simply TRUE or FALSE.
    3. Highlight ticked rows: select the table, go to Conditional Formatting > New rule > Use a formula, enter =$A2=TRUE (adjust to your first row) and pick a fill colour.
    4. Order Form, cell B11, one formula that collects everything ticked, with no gaps: =LET(all, VSTACK(tOffice,tHygiene,tJanitorial,tLinen,tOfficer,tResident,tKitchen), FILTER(CHOOSECOLS(all,2,3,4,5), CHOOSECOLS(all,1)=TRUE, "Nothing selected")) Untick an item and it disappears, and the list closes up by itself.
    5. Lock it: select the checkbox column and the order-form cells people should fill in, go to Format Cells > Protection and untick Locked. Then use Review > Protect Sheet on each tab.
    6. Open on the Form tab: Excel opens on whichever tab was active when the file was last saved. Click the Form tab, save, and close.

    If several people place orders, the next step up is a short Microsoft Form or a simple app that sends each order to a manager for approval. That avoids people overwriting each other's ticks in the shared workbook.

    Happy to help further if useful.

    Was this answer helpful?

    0 comments No comments

  2. Jack-Bu 7,310 Reputation points Microsoft External Staff Moderator
    2026-11-25T19:01:43.43+00:00

    Hi Jodi, 

    Thank you for sharing the details of your situation. 

    To assist you more effectively, could you please confirm the following information? 

    1. Are you using the Excel desktop application or Excel for the web? 
    2. Which type of checkbox are you using: the newer in-cell checkbox, a Form Control checkbox, or an ActiveX checkbox? 
    3. When a checkbox is selected, does a linked cell display TRUE or FALSE? 
    4. Are the columns for Sim #, Description, Sold As, and Cost/Unit arranged consistently across tabs 4–10? 
    5. Would you prefer a solution without VBA, if possible, or do you specifically need the form to open automatically when the workbook is opened? 

    Please feel free to share the information in the comment below. Once I have it, I'll be better positioned to guide you through the next steps. 

    I look forward to hearing your thoughts. 


    Note: Follow the steps in the forum documentation to enable email notifications if you want to receive email notifications related to this topic.

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-11-25T18:33:06.2066667+00:00

    A VBA macro is not required for the order list: use Microsoft 365 in-cell checkboxes plus VSTACK and FILTER to combine every checked row dynamically in Order Form!B11.

    1. Standardize the inventory sheets

    On each sheet from Office Supplies through Kitchen, use the same columns and row range, for example:

    Column Contents
    A Checkbox
    B Sim #
    C Description
    D Sold As
    E Cost/Unit
    1. Select the checkbox cells, such as A2:A200.
    2. Select Insert > Checkbox.
    3. Repeat on each inventory sheet.

    These in-cell checkboxes contain TRUE when checked and FALSE when unchecked, so formulas can use them directly.^1^

    Your existing conditional-formatting rule can highlight each selected row. For example, apply this formula to A2:E200:

    =$A2=TRUE
    

    Formula-based conditional formatting must return TRUE or FALSE.^2^

    2. Build the Order Form automatically

    Clear the intended output area below Order Form!B11; a dynamic-array formula needs empty cells in which to “spill” its results.

    Enter this formula in Order Form!B11:

    =LET(
     items,VSTACK(
      'Office Supplies'!B2:E200,Hygiene!B2:E200,Janitorial!B2:E200,
      Linen!B2:E200,Officer!B2:E200,Resident!B2:E200,Kitchen!B2:E200),
     picked,VSTACK(
      'Office Supplies'!A2:A200,Hygiene!A2:A200,Janitorial!A2:A200,
      Linen!A2:A200,Officer!A2:A200,Resident!A2:A200,Kitchen!A2:A200),
     FILTER(items,picked=TRUE,"")
    )
    

    VSTACK appends the ranges vertically, and FILTER returns only rows whose checkbox is TRUE.^3^^4^

    The result will:

    • Start at B11.
    • Return Sim #, Description, Sold As, and Cost/Unit.
    • Place each selected product on the next available line.
    • Remove a product automatically when its box is unchecked.
    • Close the gap automatically after an item is removed.

    Adjust 2:200 to cover the actual inventory rows. All seven source sheets must use the same four-column structure. Do not type into the formula’s spill area; #SPILL! means a cell or merged range is blocking it.

    3. Open the Form tab first

    If it is sufficient for the workbook to reopen on the last-used sheet, select Form, save, and close the workbook while that sheet is active.

    To guarantee that Form is selected whenever the workbook opens, use this small desktop VBA event:

    1. Save the file as Excel Macro-Enabled Workbook (.xlsm).
    2. Press Alt+F11.
    3. In Project Explorer, double-click ThisWorkbook.
    4. Paste:
    Private Sub Workbook_Open()
        Worksheets("Form").Activate
        Range("A1").Select
    End Sub
    
    1. Save, close, and reopen the workbook.

    Workbook_Open runs when the workbook is opened.^5^

    VBA cannot run in Excel for the web; open the workbook in the Windows desktop application for this startup behavior.^6^

    If Sheet 1 only duplicates fields already held on Form, update any formulas that reference it and then delete it. If it contains linked cells, lookup data, or calculations used elsewhere, retain it and hide it instead.

    4. Lock everything except permitted inputs

    For each sheet:

    1. Select the checkbox cells and any order-form cells users may edit.
    2. Press Ctrl+1 and select Protection.
    3. Clear Locked, then select OK.
    4. Leave Order Form!B11 and its formula locked.
    5. Select Review > Protect Sheet.
    6. Permit Select unlocked cells and any other required actions.
    7. Optionally enter a password.

    Worksheet protection takes effect only after editable cells are unlocked and Protect Sheet is enabled.^7^

    If the current checkboxes are older Form controls rather than Insert > Checkbox cells, each control normally uses a linked cell. Unlock and hide those linked cells before protecting the worksheet.^8^

    Worksheet protection prevents accidental editing; it is not file-level security. Also retain the password safely because Microsoft cannot retrieve a forgotten worksheet-protection password.


    References

    1. Using check boxes in Excel | Microsoft Support
    2. [Windows](https://support.microsoft.com/excel/use-conditional-formatting-to-highlight-information-in-excel#use-a-formula-to-determine-which-cells-to-format)
    3. VSTACK function | Microsoft Support
    4. Lookup and reference functions (reference) | Microsoft Support
    5. Workbook.Open event (Excel)
    6. Excel for the web
    7. [Windows](https://support.microsoft.com/excel/protect-a-worksheet#enable-worksheet-protection)
    8. Protect controls and linked cells on a worksheet | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.