Apr 17, 2006 #1 rickgalty Programmer Nov 10, 2005 32 US Hi, if I write a quick pop-up form in VBA, how do I then move a string value from a text-box on the form to a cell on the Excel workbook? Richard
Hi, if I write a quick pop-up form in VBA, how do I then move a string value from a text-box on the form to a cell on the Excel workbook? Richard
Apr 17, 2006 #2 firefytr Technical User May 18, 2004 1,130 US Hi there Richard, If you have just a message box ... Dim Msg as vbmsgboxresult Msg = Msgbox("Enter value:") If Msg <> "" then Range("A1").value = Msg .. if you have a userform, use the event/objects code ... Range("A1").value = Me.TextBox1.Value Replace the range/object for your specific situation. HTH Regards, Zack Barresse Upvote 0 Downvote
Hi there Richard, If you have just a message box ... Dim Msg as vbmsgboxresult Msg = Msgbox("Enter value:") If Msg <> "" then Range("A1").value = Msg .. if you have a userform, use the event/objects code ... Range("A1").value = Me.TextBox1.Value Replace the range/object for your specific situation. HTH Regards, Zack Barresse
Apr 17, 2006 Thread starter #3 rickgalty Programmer Nov 10, 2005 32 US Thank you very much ! Richard Upvote 0 Downvote