Positioning

Jotoya

Active Member
Joined
May 25, 2003
Messages
366
Hello there,

By default, the Windows calculator will show on the upper left hand corner of the screen. I am using a macro to invoke Calculator, so, if I use this code:

Code:
Private Sub GetCalculatorBtn_Click()
Dim GetWinCalc

GetWinCalc = Shell("CALC.EXE", 1)

End Sub


Is there anyway to affect the positioning of where Calculator appears? Center perhaps? Thank you. (y)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Since you are using the shell command to invoke the calculator, I don't think you can pass parameters(ie. Center). You would need to work with the calculators default options, but I don't believe you can control the calculator positioning. I tested where mine appears in Win 2000, and the calculator just seems to show up in a random location in the upper left quaderant of the screen???? Don't know why it does that.
 
Upvote 0
Thanks Cbrine. I agree with you. I thought I post anyway to see if there is a way. With as much talent as we get in this forum I thought it would be worth a try. Thanks for the quick response. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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