[Solved] OpenOffice Calc - Button with SQL

Discuss the spreadsheet application
Locked
Rassler
Posts: 3
Joined: Sun Nov 19, 2023 7:40 pm

[Solved] OpenOffice Calc - Button with SQL

Post by Rassler »

Hi All,

I would like to need your help for a small topic for you experts :D

I need a solution, where I need a button in my Calc Sheet, which update cells with value +1

Example to make it more clear:
- I do have a Calc Sheet which has in cells H4 till H42 a number value (sheet can be extented with the amound of rows in future)
- When the button will be pressed I would like to have, that each cell the number value will be updated with Value +1

It would be great, if you can explain the steps to me, how I can make this.


Many Thanks!
Last edited by Hagar Delest on Mon Nov 20, 2023 2:38 pm, edited 1 time in total.
Reason: tagged solved.
Apache OpenOffice 4.1.14
Windows 11
User avatar
MrProgrammer
Moderator
Posts: 4909
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Open Office Calc - Button with SQL

Post by MrProgrammer »

Hi, and welcome to the forum.
Rassler wrote: Sun Nov 19, 2023 7:49 pm I need a solution, where I need a button in my Calc Sheet, which update cells with value +1
[Solved] How do I increase all variables by 1 with a click?
[Solved] Increment/decrement feature for cells
You can assign a recorded macro to a function key or to a toolbar button.

[Tutorial] Favorite Recorded Calc Macros

Rassler wrote: Sun Nov 19, 2023 7:49 pm Open Office Calc - Button with SQL
This topic is in the Calc (spreadsheet) forum. I don't understand why you mention SQL in the topic subject, so I ignored the reference to SQL, which is used with databases.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: OpenOffice Calc - Button with SQL

Post by Villeroy »

Since you mentioned SQL (Calc is NOT a database), the attached database has some numeric columns with random values and a form where you can manipulate any date, time, currency and integer by means of mouse wheel, up/down arrows and clicking on spin buttons.
Attachments
form_controls.odb
(14.97 KiB) Downloaded 33 times
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Rassler
Posts: 3
Joined: Sun Nov 19, 2023 7:40 pm

Re: Open Office Calc - Button with SQL

Post by Rassler »

Thanks for your answer!
MrProgrammer wrote: Sun Nov 19, 2023 10:03 pm Hi, and welcome to the forum.
Rassler wrote: Sun Nov 19, 2023 7:49 pm I need a solution, where I need a button in my Calc Sheet, which update cells with value +1
[Solved] How do I increase all variables by 1 with a click?
Here it says

Select your target cells (the ones to be incremented) → Edit → Paste Special →
• Selection=Numbers
• Operations=Add
• Shift=Don't
• All options unchecked → OK

But I don't see Selection, Operation etc somewhere
Apache OpenOffice 4.1.14
Windows 11
Rassler
Posts: 3
Joined: Sun Nov 19, 2023 7:40 pm

Re: [Solved] How do I increase all variables by 1 with a click?

Post by Rassler »

So, now I got it!

Was my mistake with paste the data in - Sorry!

Thank you very much for your help!

 Edit: Post moved from topic 74945 to this one. -- MrProgrammer, forum moderator  
Apache OpenOffice 4.1.14
Windows 11
User avatar
MrProgrammer
Moderator
Posts: 4909
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: [Solved] OpenOffice Calc - Button with SQL

Post by MrProgrammer »

Rassler wrote: Mon Nov 20, 2023 1:35 pm But I don't see Selection, Operation etc somewhere
Before attempting to use Paste Special you must copy 1 to the clipboard as described in the first three sentences of the topic which you quoted.
202311200914.gif
202311200914.gif (86.03 KiB) Viewed 359 times
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Locked