PC Review


Reply
Thread Tools Rate Thread

from a cell to my textbox

 
 
=?Utf-8?B?QmFyYg==?=
Guest
Posts: n/a
 
      20th Sep 2007


I have values from the RANGE A1 to A100. I'm trying to find out a way to
click on one of these cells with my mouse to send the value to a control
textbox .
any idea?

 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      20th Sep 2007
On Sep 19, 7:44 pm, Barb <B...@discussions.microsoft.com> wrote:
> I have values from the RANGE A1 to A100. I'm trying to find out a way to
> click on one of these cells with my mouse to send the value to a control
> textbox .
> any idea?


In the worksheet module of the sheet you are wanting to apply this to,
place something like this in the Worksheet_Change event. Edit the
textbox's name accordingly. HTH

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
ActiveSheet.DrawingObjects("Text Box 3").Text = Target.Text
End If
End Sub

 
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
linking textbox to cell in a datagridview cell cj Microsoft VB .NET 12 7th Dec 2007 02:14 AM
VBA cell to textbox gwoodby@gmail.com Microsoft Excel Misc 3 22nd Oct 2007 07:47 PM
VBA Cell to TextBox gwoodby@gmail.com Microsoft Excel Programming 4 22nd Oct 2007 07:46 PM
get cell value to textbox Christy Microsoft Excel Programming 2 30th Aug 2003 04:15 PM
Textbox in a cell Cagey Microsoft Excel Worksheet Functions 3 10th Jul 2003 02:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:52 AM.