ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro VBA Code (https://www.excelbanter.com/excel-programming/301747-macro-vba-code.html)

Val Steed

Macro VBA Code
 
Could someone give me the inputbox command that would pause for input and
place the results in cell b3



Paul B[_6_]

Macro VBA Code
 
Val, try this

Sub test()
MyData = InputBox("Your Message Here", "Title Here")
If MyData = "" Then

Exit Sub
End If
Range("A1").Value = MyData

End Sub

--
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 2000 & 97
** remove news from my email address to reply by email **
"Val Steed" wrote in message
...
Could someone give me the inputbox command that would pause for input and
place the results in cell b3





Harald Staff

Macro VBA Code
 
Sub test()
Range("B3").Value = InputBox("Anything man:")
End Sub

HTH. Best wishes Harald

"Val Steed" skrev i melding
...
Could someone give me the inputbox command that would pause for input and
place the results in cell b3






All times are GMT +1. The time now is 07:59 AM.

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