popup Calculator in a cell ?

WERNER SLABBERT

Board Regular
Joined
Mar 3, 2009
Messages
104
i have a sheet that does alot of math, every time i want to change a cel number i have to open win calc, is there a way i can insert a popup calc that will do the math for that cell and then only display the result in said cell ?

eg: i click on b12 and *pop* it shows a popup calc. 20+67+300= *ting* B12 shows 387
387

<tbody>
</tbody>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Love "Veni, Vedi, Velcro ..." !!!! :LOL: :LOL: :LOL:

You can test following event macro in sheet module
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Program As String
Dim TaskID As Double


Program = "calc.exe"
On Error Resume Next
AppActivate "Calculator"
  If Err <> 0 Then
    Err = 0
    TaskID = Shell(Program, 1)
    If Err <> 0 Then MsgBox "Can't start " & Program
  End If
Cancel = True
End Sub

HTH
 
Upvote 0
Hi,

Love "Veni, Vedi, Velcro ..." !!!! :LOL: :LOL: :LOL:

You can test following event macro in sheet module
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Program As String
Dim TaskID As Double


Program = "calc.exe"
On Error Resume Next
AppActivate "Calculator"
  If Err <> 0 Then
    Err = 0
    TaskID = Shell(Program, 1)
    If Err <> 0 Then MsgBox "Can't start " & Program
  End If
Cancel = True
End Sub

HTH

Hi HTH

Thanx for the code, calls win calc and everything great, but i might be nit picking here is there a way to get the result from calc without still having to insert it into the cell manually, thing is, i am working on a darts game scoreboard and as my friends always cheat in the game i want to eliminate the chances they have to do so. if you want i'll send you a copy so you can see what i mean.

ps: veni,vedi, velcro.... it made sence when i started working in excel...lol

Is there not maybe some way to embed a vb form into the workbook for this function, ?
 
Last edited:
Upvote 0
Hi Again, thanx for the calc, i have sort of got it working. but still have no way of getting the calc to enter the total in the selected cell automatically, i will fiddle some more and let you know.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top