LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 144
Default Copying text within text box and having scroll bar appear

Hi all,

I'm having two more issues with my form:

1 - I would like to have a command button on the form copy the text within a
text box on the form so that the user can then paste it into Notepad or Word
(and so that only the text is copied, not the formatting lines of code such
as "& vbnewline & _"). My code below is not working.

2 - I have set the "Scrollbars" attribute of the text box within the form to
"2 - frmScrollBarsVertical" -- the issue is that it doesn't appear until the
user actually clicks within the text box. I'd like it to appear as soon as
the code is executed. I noticed that a text box doesn't have the
"KppeScrollBarsVisible" attribute that a form does...

Thanks for your help!

Below is the code that executes when the commandbutton within the form is
clicked -- I get a "Compile Error: Invalid Qualifier" error:

Private Sub cmdcopymsg_Click()

With frmerrormsg
.txterrormsg.Text.Copy
End With

End Sub


--
Robert
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code for searching & copying Text from 1 text file to another J@Y Excel Programming 2 June 27th 07 04:16 PM
Copying text from website OR selecting and coping certain text within a cell keri Excel Programming 2 April 12th 07 11:23 PM
Truncated text when copying text from one excel doc to another sunny pete Excel Discussion (Misc queries) 3 August 12th 05 02:11 PM
Text not copying as text from Word to Excel 2003 Christine Excel Discussion (Misc queries) 4 March 3rd 05 11:33 PM
Copying text from a text box into a cell on another sheet cakonopka Excel Programming 1 January 22nd 04 07:57 PM


All times are GMT +1. The time now is 09:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"