Google Script equivalent of Excel VBA Refedit - javascript

I'm trying to replicate some Excel VBA in Google Script. I want to prompt the user to input a range from a Google Spreadsheet. Is there a script equivalent to refedit? I need them to input three ranges so I can't just use the currently selected range.
Thanks!

Theres no equivalent. You can ask them to select them one by one by selecting them in the spreadsheet, or make a dialog that asks the user to type them on text fields.

Related

Convert a fillable PDF form (containing javascript) to HTML form

Sorry in advance! I am very new to the subject
I have created a fillable form using adobe acrobat that includes a drop-down that, depending on what is selected, changes some text in a text field later in the document (where I used javascript in the validation field of the dropdown). I want to convert this to an HTML form where this background process for the drop-down & text fields is kept (when using the adobe create web form option, it won't let me keep the background script for the dropdown).
I have tried a few different converters but none have kept the javascript
Is this easily doable for someone with very basic knowledge? Any help is appreciated.

Create a bookmark in Firefox that goes to a page, and then fills in an input field?

For work we have a little tool that shows how many hours people have worked, and there is a "filter by name" box that I usually just fill with my name to see my hours.
I have this page bookmarked, but every time I have to fill in the filter. Sadly there is no url-parameter I can add to automatically fill this filter.
So I was wondering, is there a way to have a bookmark in Firefox that open a webpage, and then fills in the filter input for me? I know it's possible to have javascript in the "location" field of a bookmark, but I couldn't find a way to have both a url and javascript.
Note: Luckily the filter input has an id called "searchInput". So it is easy to get it through javascript.
Is something like this possible?

Filling forms in Salesforce Lightning using console commands in Chrome

I am trying to automate the filling of a form on Salesforce with the Lightning interface and am hoping this can be done by simply entering a series of commands in the browser dev console or similar (I'm not averse to running a JScript or Python script or other if that would be easier).
Basically the form is a series of what appear to be Java fields (text, combo boxes, check boxes, etc.) and when I inspect the various elements I would like to fill in I can see their various identifiers as shown below without any issue.
Most of the fields have a huge list of event triggers associated with them, such as those below for the above text field.
So is there some what I can use the console (or JS or Python) to quickly and easily set the text to this field in the same way one might select the field and then type in the text?
Thank you!

Google sheet script to assign action items (Ctrl+Alt+M)

I am trying to automate action items assignments in google sheets.
At the moment it is manual process. Our google sheets have section with two columns:
One column with reviewer names and emails
Another column with sign off (completion) dates
Managers have to go through many “sign off” cells one by one, press Ctrl+Alt+M to insert comment, enter corresponding reviewer’s email with plus symbol and some text
‘+John.Citizen#mycompany.com
Please review this sheet and blah-blah-blah’
JavaScript Range functions setNote or setCommet (https://developers.google.com/apps-script/reference/spreadsheet/range#setnotenote ) do not work for me.
Any idea how to assign using script or somehow simulate pressing (Ctrl+Alt+M) ?
Thank you
As #Patrick P says, there is no methods in Apps Script to interact with comments.
But go ahead and add a star next to the issue number here[1] to give it more visibility.
[1]https://issuetracker.google.com/36756650
With the Drive API you can create and manage comments and replies, they can be anchored to a position on the document, or unanchored which is just associated with the document.
Have a read at the documentation here:[2]
[2]https://developers.google.com/drive/api/v3/manage-comments

Cell Input with Selection Capability in Google Spreadsheet Prompt

How does one allow the user to select a cell from a Google Spreadsheet Prompt? According to the documentation, there is a way to get text input from the Prompt, but there does not appear to be a way for the user to click a cell and have it auto-fill the textbox.
Is there a workaround that adds this functionality?
References:
Google Apps Scripts Documentation
Google Apps Scripts Prompt Response
While the built in prompt dialogue doesn't take a "value" parameter to pre-populate the textbox, you can replicate the prompt with a custom html dialog containing the pre-populated form field.
Use showModalDialog(userInterface, title) or showModelessDialog(userInterface, title) documented on the at the Prompt response link in your question.
See an example of a custom dialog here:
https://developers.google.com/apps-script/guides/dialogs#custom_dialogs

Categories