I am looking for help trying to record a macro/write script to act as shortcuts for choices I am making from the Toolbar.
i.e. Rather than having to click 'Insert' > 'Pivot table' I'm looking for the script to add to a button that I can place on the worksheet itself.
To act as a kind of shortcut to the toolbar.
I'll then apply this example to some of the 'Extension' apps I have.
Related
I'm using a Drawing as a way to call a script. My use case expects this button to be pressed in rapid succession sometimes (two or three times at once).
I simply want the button to call the script multiple times (it does) without opening the edit drawing dialog.
Are there permissions I can set to prevent the user from opening this dialog?
Or is there a way to lock the drawing?
Or is there a different way to create a button that can be used in this way? (I looked at onSelectionChange(e) but this doesn't solve my multiple click need.)
Thank you.
A simple solution is to not use a drawing at all. Here's how:
Make a nice snip of the UP arrow, and copy it to the clipboard
Select the cell where the arrow is now and delete the Drawing.
In the same cell paste the snip from the clipboard
Right click on the pasted Arrow image and assign the script to it.
Notice that you can click many times and it will work as you expect.
Repeat for the DOWN arrow.
My question seems to be very silly, but I haven't found solution myself.
Is there a way to simply paste a macro (example) from Stack Overflow in Access? Or, alternatively, paste it from Access to Stack Overflow?
I know, it is very easy in Word and Excel. But I can't understand how to do it in Access.
Basic questions certainly deserve asking, if they're not duplicates.
There are a couple of different cases:
Add VBA on a form event (this case)
Open up the form in design view
Identify the control you want to add the macro to (the part before the _ is the control name, the part after the _ is the event name, so the KeyDown event on the form control.
Identify the event you want to add code to on the event pane
Press the builder ... thing
Choose Code Builder and press OK.
You will see some event code has already been added. Replace that with the copy-pasted code.
Add VBA (function or sub) outside of a form (triggered elsewhere, such as a user-defined function for use in queries)
Open up the VBA editor by hitting Alt + F11
Choose Insert -> Module in the top bar
Paste the code
Paste a normal, non-VBA macro using AXL
Create a macro on the create tab on the ribbon
Select the body of the macro by clicking the blank space inside it (not the area where you can create new controls)
Hit Ctrl + V to paste
Paste an Access data macro using AXL
Open the table you want to add the data macro to in design view.
In the ribbon, click Create data macros, choose and click the right event. You can identify the event by looking at the event property of the datamacro tag, for example <DataMacro Event="AfterInsert"> = On After Insert
Select the body of the macro by clicking the blank space inside it (not the area where you can create new controls)
Hit Ctrl + V to paste
Note that questions about non-VBA macros rarely contain the AXL necessary to paste it. Pasting AXL is somewhat contra-intuitive, as you don't paste it in a textbox and the result isn't text.
I have inserted a chart into a Google Doc, but would like to make it update automatically instead of having to manually open the Doc and press the floating update buttons.
So far I have found no way to do this beyond writing a script to replace each one every time - which I have not yet felt strong enough to do.
How can an embedded chart be updated automatically?
Google Docs doesn't support the proper way of linking and embedding objects like MS Office does. I haven't seen any real solution as yet.
I found several answers from this forum you might want to try:
Using XML Gadget for Charting:Steps if you would like to try out;
Go to your google spreadsheet (or googgle form data).
go to Menu>Insert>Gadget
click "chart" & select chart you like & "add to spreadsheet"
key-in all the chart setting required by the Gadget
click "apply & close"
After the chart populated, point your mouse to the left corner of chart, click "gadget"
You'll see "Get Query data source"-item a
and "Get XML" - item b
click the item b, example "http://www.google.com/ig/modules/image-bar-chart.xml"
Go to google "site" and "insert" > "more gadget"> "add gadget by url"> paste the item b, http://www.google.com/ig/modules/image-bar-chart.xml
You'll need to provide the data source in the pop-up windows, paste the link of item a and key-in all necessary setting. (refresh interval 1, 5, 30mins- set here)
save & done.
Using ARRAYFORMULA to make sure that the charts would be updated with the new information. Sample is in this site.
I'm not entirely sure if this is useful but since you're doing scripting, you might as well check Read and write data in Firebase from Apps Script.
Found a hint at github:
Yes, that is correct, published charts in Google Sheets only update 5 minutes after a change was made.
I have created a column chart in Google spreadsheet, but it is not showing data label explicitly.
I need data value to be shown on top of each bar of column chart. Currently, that is showing only as tool tip, but I require it to be always visible.
I have not used any script just created it directly, please provide some way either by script/direct to implement data labels. only direct / apps script but no java script as I only need to view it on my spreadsheet.
here is link of sheet: https://docs.google.com/spreadsheets/d/1a95DrTeLA52Xmycq3IUlWgfqASQWJQla7xEXx5-KWGE/edit?usp=sharing
You may have found the solution by now but just in case it might be helpful to others, here's my response.
Your sharing of sheet was useful in helping you with your question. Here are the steps to get the values for the data labels on the top of your columns.
Right click on the chart.
Click on Advanced Edit. (This will open a new window named "Chart Editor")
Click on "Customization" tab.
Drag the bar and keep going down until you see "Data Labels" with a drop down below it.
Click on the drop down. (This will open a list of options)
Choose "value" from this list of options.
Click "Update" and you'll see the change in your graph.
Let me know if you have any questions.
I figured out a solution. If you create a pivot table and graph that data, the values will show.
I am currently developing a program in Google Script that works with Google Sheets. I've created a tab that serves as the UI and have multiple tabs for each data type to store the data.
When I first started, I originally reserved some cells on the UI tab that I used as the inputs for creating a parent-child relationship instance. To do this, I directly set validation on each of the cells and used the "List from a range" Criteria to provide the drop-down list to provide the options to select from.
Now, I am trying to move this input off of the cells in the UI tab and into the sidebar. I am now using HTML Service and am creating a form to handle this functionality. However, I can't figure out where to get started to provide the same drop-down functionality for each of the text inputs in the form as I had when I used the cell validation.
Does anyone know what syntax is used to do this?
Thank you,
Nicholas Kincaid
jQuery auto-complete combo-box is what will take care of this => jqueryui.com/resources/demos/autocomplete/combobox.html