2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Defining a variable through user input in Office Scripts

Our take

In this inquiry, the user seeks guidance on defining a variable through user input in Office Scripts for Excel within Office 365. They aim to streamline a script that organizes timber volume data into tables and graphs for management plans. Currently, the script requires manual entry of stand acreages, but the user envisions a more efficient process. They wish to prompt users for acreage input directly within the script, enhancing usability while maintaining security. Insights on implementing this functionality in Office Scripts are requested.

Hello all,

I am setting up a script for my company in the Office 365 version of Excel that takes the raw timber volume output from our computation software and organizes it into tables and graphs to be used for management plans and other communications with our clients. The computation software automatically organizes our data into stand types, but my boss would like the script to also create a tab that presents the aggregate data of all the stands as a total for the entire property. The problem with this is that our computation software provides the data on a per acre basis for the stands and does not show the acreage for each stand in the output that the script is using. This information is readily available to anyone in our company, but because I am using Office Scripts instead of VBA for security reasons I cannot fully automate pulling that information into the file.

Currently, I have a required user input tab that the user must fill out the stand acreages in before running the script but I would like the script to be able to be run directly from the raw data after copying it into the worksheet. Ideally this would be done by prompting the user to enter the stand acres into the script and have it save the answer as a variable as it runs but I have not been able to find the commands for this functionality on the Microsoft 365 documentation website or anything on StackOverflow that explains how to set this up. Does anyone know how to do this in Office Scripts?

submitted by /u/Jearlybird
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#Excel alternatives for data analysis#generative AI for data analysis#natural language processing for spreadsheets#big data management in spreadsheets#enterprise data management#conversational data analysis#real-time data collaboration#intelligent data visualization#data visualization tools#big data performance#data analysis tools#data cleaning solutions#digital transformation in spreadsheet software#Excel compatibility#financial modeling with spreadsheets#Excel alternatives#rows.com#Office Scripts#Excel#user input