Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
lee lee is offline
external usenet poster
 
Posts: 184
Default General Cut & Paste Issue

I have an application with multiple text boxes on a single worksheet and am
trying to allow the users to copy information from the worksheet (WK1) into a
text box (TB1) on the same worksheet, or open another file in the same
session of Excel and copy information from a worksheet (WK2) into the text
box (TB1) on the first worksheet (WK1).

I'm not sure what's happening. If I open up another file in the same
session of Excel, and switch between the workbooks in the same session, or
switch from the worksheet to the text box on the same worksheet, the paste
capability into the text box is shut off; however, I can copy from text box
to text box on the same worksheet If I open up another session of Excel, or
another application like Word, I can paste into the text boxes in the first
session.

Is there a settiing (or some code) that allows me to copy from the worksheet
to the text boxes on the same worksheet, or allows me to copy from one
worksheet to a text box in another workbook, within the same Excel session?
--
Lee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default General Cut & Paste Issue

Hi Lee,
what about to use a string variable to handle the text moving,
something like this:

Sub maketext()
Dim mytext As String
mytext = activesheet.Cells(1, 1).Value
ActiveSheet.Shapes("Text Box 1").TextFrame.Characters.Text = mytext
End Sub

("copy" text of A1 cell into text box called "Text Box 1" of active
sheet)



Lee napsal: I have an application with multiple text boxes on a
single worksheet and am
trying to allow the users to copy information from the worksheet (WK1) into a
text box (TB1) on the same worksheet, or open another file in the same
session of Excel and copy information from a worksheet (WK2) into the text
box (TB1) on the first worksheet (WK1).

I'm not sure what's happening. If I open up another file in the same
session of Excel, and switch between the workbooks in the same session, or
switch from the worksheet to the text box on the same worksheet, the paste
capability into the text box is shut off; however, I can copy from text box
to text box on the same worksheet If I open up another session of Excel, or
another application like Word, I can paste into the text boxes in the first
session.

Is there a settiing (or some code) that allows me to copy from the worksheet
to the text boxes on the same worksheet, or allows me to copy from one
worksheet to a text box in another workbook, within the same Excel session?
--
Lee


Reply
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
General lookup and cut and paste between 2 spreadsheets ewt Excel Discussion (Misc queries) 1 September 24th 09 06:55 PM
Paste issue Victoria Excel Discussion (Misc queries) 0 November 24th 08 01:23 AM
Copy & Paste Issue carrera0000 Excel Discussion (Misc queries) 3 August 17th 07 02:24 AM
Copy Paste issue amwebber Excel Worksheet Functions 3 October 31st 06 02:08 AM
Issue with copy & paste? Etrnal168 Excel Discussion (Misc queries) 2 July 12th 05 03:35 AM


All times are GMT +1. The time now is 03:36 AM.

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

About Us

"It's about Microsoft Excel"