![]() |
Copy TextBox Text
I have a userform with multiple textboxes , I want to be able to highlight
text in a text-box and hit a button which would essentialy copy the text string and based on which button I had clicked send it to the appropriate designated cell in a spreadsheet. If this is at all possible I would greatly appreciate any help or direction. Thank you. |
Copy TextBox Text
Something like:
Private Sub CommandButton1_Click() if textbox1.value <"" then with sheet1 ..select range("A1").value = textbox1.value else msgbox "There is NO Value in Textbox1 !!" end if end with end sub Changing Texbox1 to what ever you need and the Sheet1 & A1 to also suit. Corey.... "Benz" wrote in message ... I have a userform with multiple textboxes , I want to be able to highlight text in a text-box and hit a button which would essentialy copy the text string and based on which button I had clicked send it to the appropriate designated cell in a spreadsheet. If this is at all possible I would greatly appreciate any help or direction. Thank you. |
Copy TextBox Text
Thank you Corey, but I was hoping it could copy just the selected string of
text within the text box and copy/Move it. Example: TextBox "This Useform is for the purpose of tracking parts, orders, and status." I was wondering if it is possible to select " part, orders and status" within the text box .... then hit the button and have just that phrase copy to a cell. "Corey" wrote: Something like: Private Sub CommandButton1_Click() if textbox1.value <"" then with sheet1 ..select range("A1").value = textbox1.value else msgbox "There is NO Value in Textbox1 !!" end if end with end sub Changing Texbox1 to what ever you need and the Sheet1 & A1 to also suit. Corey.... "Benz" wrote in message ... I have a userform with multiple textboxes , I want to be able to highlight text in a text-box and hit a button which would essentialy copy the text string and based on which button I had clicked send it to the appropriate designated cell in a spreadsheet. If this is at all possible I would greatly appreciate any help or direction. Thank you. |
All times are GMT +1. The time now is 06:55 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com