View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default Please help - Spin Button

You formula is correct expect you do not need quotes
=SQRT(A1^2+2.5*A1-1.4)

Do you have the spin button working?
Excel will keep whatever value is in A1 at the time you issue the Save
command

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"the nomad" < wrote in message
...
Dear Experts,

Can you please help me to write the code for the following.

In Cell "A1" I have a value, e.g. 3
In Cell "B1" I have an equation with the value in "A1", e.g.
=SQRT("A1"^2+2.5*"A1"-1.4)

I also have a Spin Button that I want to use to increase
SpinButton1_SpinUp() or decrease SpinButton1_SpinUp() the value in A1 with
an increment of 1 every time I click Up or Down so that the calculation in
B1 would change. But I want this value to be saved in A1 as well when I
exit Excel and open again.

Thanks a lot!

Cheers,
Ginger