ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Input box (https://www.excelbanter.com/excel-programming/330421-input-box.html)

Greg B[_5_]

Input box
 
How do I get this to place information onto a work sheet called committee
cell b10?

Private Sub CommandButton9_Click()
Dim MyInput
MyInput = InputBox("Enter your name")
MsgBox MyInput

End Sub


Thanks
Greg



Paul B

Input box
 
Greg, here is one way,
Sheets("committee").Range("B10") = InputBox("Enter your name")


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Greg B" wrote in message
...
How do I get this to place information onto a work sheet called committee
cell b10?

Private Sub CommandButton9_Click()
Dim MyInput
MyInput = InputBox("Enter your name")
MsgBox MyInput

End Sub


Thanks
Greg





Greg B[_5_]

Input box
 
OK Thanks for your help

Greg
"Paul B" wrote in message
...
Greg, here is one way,
Sheets("committee").Range("B10") = InputBox("Enter your name")


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Greg B" wrote in message
...
How do I get this to place information onto a work sheet called

committee
cell b10?

Private Sub CommandButton9_Click()
Dim MyInput
MyInput = InputBox("Enter your name")
MsgBox MyInput

End Sub


Thanks
Greg







Bob Phillips[_6_]

Input box
 
Worksheets("committee").Range("B10").Value = MyInput

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B" wrote in message
...
How do I get this to place information onto a work sheet called committee
cell b10?

Private Sub CommandButton9_Click()
Dim MyInput
MyInput = InputBox("Enter your name")
MsgBox MyInput

End Sub


Thanks
Greg





Greg B[_5_]

Input box
 
Thanks to both of you for the help

Greg
"Bob Phillips" wrote in message
...
Worksheets("committee").Range("B10").Value = MyInput

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Greg B" wrote in message
...
How do I get this to place information onto a work sheet called

committee
cell b10?

Private Sub CommandButton9_Click()
Dim MyInput
MyInput = InputBox("Enter your name")
MsgBox MyInput

End Sub


Thanks
Greg








All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com