Computer Learning Zone CLZ Access Excel Word Windows

Don't Touch That, Please! Your Primitive Intellect Wouldn't Understand Alloys And Compositions And Things With... Molecular Structures!

-Ash Williams
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Copy Text Box Value to cell
Alex Hedley 
           
15 years ago
Hi Donald,
I did a bit of research myself as this intrigued me and found out it it is possible to get the text from a Drawing Textbox.

Add an ActiveX button on your worksheet,

Add the next bit of code:-

Private Sub CommandButton1_Click()
    Dim tbx As TextBox
        i = 1
        j = 1
        For Each tbx In ActiveSheet.TextBoxes
            Cells(j, i).Value = tbx.Name
            Cells(j, i + 1).Value = tbx.Text
            j = j + 1
    Next
End Sub

You may wish to:
1. Change the place you wish to put the returned values i.e. i & j values,
2. not get the name of the textbox [tbx.Name] this was more for debugging purposes.

Regards
Alex


Reply from Richard Rost:

Excellent. Good work.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 6:39:41 AM. PLT: 1s