Put Cell Value in Mgsbox and answer with a Value in cell

Hjemmet

Board Regular
Joined
Jun 20, 2018
Messages
207
I have in my worksheet Lots of Formulae's

and the funkction ill need is this function.

when i Click on cell G7 then a Mgsboks should Show up
an then show result Value from Cell D6 on first line
and Value for cell D7 on second line


now the worst part of it all is Instead of "Yes , No , Cancel" on Msgbox is it possibel to change that so it is "1 , 2 , cancel"
so if i press on 1 then cell G7 is showing 1 or 2 if i press 2 ,cancel is Offcours cancel mgsbox

hope that was enough info
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
i have figure the first part out but need the Buttonfunction

Private Sub Workbook_Open()
MsgBox "Player one" & vbCrLf & vbCrLf & Worksheets("Ark1").Range("A1") & vbCrLf & vbCrLf & "Player two " & vbCrLf & vbCrLf & Worksheets("Ark1").Range("A2"), vbExclamation + vbRetryCancel + vbDefaultButton2, _
"Choose Winner"
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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