PC Review


Reply
Thread Tools Rate Thread

Copy TextBox Text

 
 
=?Utf-8?B?QmVueg==?=
Guest
Posts: n/a
 
      21st Feb 2007
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.
 
Reply With Quote
 
 
 
 
Corey
Guest
Posts: n/a
 
      21st Feb 2007
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" <(E-Mail Removed)> wrote in message
news:52993995-FDD1-4F4D-9F8B-(E-Mail Removed)...
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.


 
Reply With Quote
 
=?Utf-8?B?QmVueg==?=
Guest
Posts: n/a
 
      22nd Feb 2007
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" <(E-Mail Removed)> wrote in message
> news:52993995-FDD1-4F4D-9F8B-(E-Mail Removed)...
> 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.
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy text from textbox to another application Ken Microsoft Excel Programming 3 12th Sep 2010 02:22 PM
Copy text then Past Text into TextBox not working RyanH Microsoft Excel Programming 4 19th Mar 2008 10:33 AM
Copy text from TextBox David Dvali Microsoft C# .NET 2 11th May 2005 09:14 PM
copy text in textbox to another textbox on click leon Microsoft Access Form Coding 3 30th Mar 2005 04:47 PM
how to copy text from a TextBox to the clipboard ? =?Utf-8?B?b2Zpcg==?= Microsoft Access Form Coding 1 16th Oct 2004 02:05 PM


Features
 

Advertising
 

Newsgroups
 


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