Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Excel Text Box to string in a cell

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Excel Text Box to string in a cell

    Hi

    I have a text box in excel and I need to send its contents to a cell or in an email. The current code displays an error.

    Sub TextBox()

    Activesheet.Range("A1") = TextBox 1.text

    End Sub

    Can anyone help me fix this code?

    Many Thanks


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Excel Text Box to string in a cell

    You have given us next to no context to help you with your problem...is this Visual Basic? These are java forums - a far cry from Visual basic.

Similar Threads

  1. Replies: 0
    Last Post: December 15th, 2011, 01:14 PM
  2. Replies: 3
    Last Post: September 1st, 2011, 10:49 AM
  3. Replies: 5
    Last Post: April 7th, 2011, 11:22 AM
  4. set Background Excel cell color using POI API
    By ngamal in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 26th, 2011, 11:20 AM
  5. Convert text to excel
    By mamta_techie in forum JDBC & Databases
    Replies: 1
    Last Post: December 27th, 2010, 12:15 PM

Tags for this Thread