Results 1 to 3 of 3

Thread: Excel 2007 -VB.NET - how do you create a textbox and input value from cell?

  1. #1

    Thread Starter
    Hyperactive Member simpleonline1234's Avatar
    Join Date
    Mar 2010
    Posts
    322

    Excel 2007 -VB.NET - how do you create a textbox and input value from cell?

    I have an Excel sheet that will have different information on the sheet everytime I open the file. Ex: Saving Excel sheet and overwriting file .

    I have a macro that goes into the Excel Sheet and auto arranges the cells in an order that I can read the information more clearly...stacked rather than all in one row.

    I need to export certain cell values over to a Word 2007 doc file for further use (auto populate a template letter).

    What I am wanting to know is the first step in the many steps needed and I may be able to figure it out from there.

    Let's say that I have a macro on the Excel sheet that will always be there...how can code the macro to create a textbox and input the value of cell A1 into the textbox after it's creation?

    Thanks
    Are you down with OOP?

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Excel 2007 -VB.NET - how do you create a textbox and input value from cell?

    how can code the macro to create a textbox
    a textbox where?
    in word document?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Hyperactive Member simpleonline1234's Avatar
    Join Date
    Mar 2010
    Posts
    322

    Re: Excel 2007 -VB.NET - how do you create a textbox and input value from cell?

    I have an Excel document that I need to programmically create a textbox when I click a command button then take the value of cell A1 and put that value into the newly created textbox.

    I will need to also need to export that value of the textbox in the Excel to a textbox already created into a Word document.

    so

    Excel - need to create a textbox programmically - take the value of cell A1 and put that value into the new textbox created in the Excel sheet.

    Word 2007 - I have a textbox already created in my word document and I am needing to take the value of the Excel textbox just created and put the value from the Excel textbox1 and put the value into the Word textbox1.

    Sorry if this is confusing but I don't really know how else to put it.
    Are you down with OOP?

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