A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello Karl M,
I am an independent advisor, trying to help other users in the Community with my experience in Microsoft products. Please note that I am a user like you and don't work directly for Microsoft.
Please try the steps below:
- Set up your spreadsheet: Open Excel and create a new workbook.
- Create Headers: In the first row, create headers for Date, Horse, Action, Notes, etc.
- Data Validation for Dropdowns:
- Select the cells where you want dropdowns for Date, Horse, Action, etc.
- Go to Data > Data Validation > Data Validation.
- Choose "List" under Allow, then enter the options you want for each dropdown.
- Repeat this step for each column requiring dropdowns.
- Insert Button for Adding New Row:
- Go to Developer > Insert > Button.
- Draw a button on your sheet.
- In the Assign Macro dialog box, choose "New" to create a new macro.
- Enter a name (e.g., addNewRow) and click "OK".
- Write VBA Code to Add New Row:
- Press Alt + F11 to open the Visual Basic for Applications (VBA) editor.
- Insert a new module from Insert > Module.
- Write a VBA script to insert a new row when the button is clicked. Here's a basic example:
Sub addNewRow() Dim lastRow As Long With ThisWorkbook.Sheets("Sheet1") ' Change "Sheet1" to your sheet name lastRow = . Cells(. Rows.Count, "A"). End(xlUp). Row + 1 . Rows(lastRow). Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove End With End Sub
- Save your VBA code and close the VBA editor.
- Test your button: Click on the button to ensure it adds a new row with the appropriate dropdowns.
These steps should help you create a spreadsheet where you can input data in a single row with dropdowns and keep a running list of all items. Adjustments may be needed based on your specific requirements and spreadsheet layout.
I would appreciate your feedback
Kind Regards, Fatai