Results 1 to 2 of 2

Thread: VB and excel

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Posts
    54

    VB and excel

    I am having trouble getting the excel cell that I click on to display the value in a text box on a form. Any ideas? Where would I put the code? Lost_Focus() event on the form????

  2. #2
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    What do you want to go where?

    Do you want a Value from a textbox on a form to be trasferd to
    a cell on a worksheet?
    If so thats easy. Use one of the form events and put something like this


    VB Code:
    1. Worksheets("NameOfSheet").Range("A1").Value = userform1.textbox1.value

    Any help?

    Seahag

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width