+ Reply to Thread
Results 1 to 4 of 4

From UserForm TextBoxes to specific cells on worksheet

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Office 365
    Posts
    176

    From UserForm TextBoxes to specific cells on worksheet

    G'day all,

    I've used userforms before to capture input and write it to a new row of a worksheet however, management has given me a very user-UNfriendly report to fill out each out month. The report consists of a couple of pages on the one worksheet and it's a pain to read so I've made a userform to help things along. What I'm after is the syntax for taking userform input in the textboxes and writing it to specific cells on the sheet.

    For example, textboxes (TB) TB1, Tb2, Tb3 and TB4 should be written to cells B5, B6, B7 and B8 respectively, TB9, TB10, TB11 and TB12 should be written to cells D5, D6, D7 and D8 respectively, and so on, for about 30 or more textboxes.

    The cells are not always contiguous - the column numbers will stay the same, but the rows may be all over the shop.

    If someone could point me in the right direction, I'd be grateful. Just a basic example of the syntax is all I'd need to get me started, I reckon...

    Cheers,

    AJ
    Last edited by ScotyB; 03-04-2015 at 05:43 PM.
    Always grateful for the help here - thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: From UserForm TextBoxes to specific cells on worksheet

    Hi AJ,

    I've had in the back of my mind that the Textbox TAG should be used for something. Here is how you might use it. Put in each Textbox Properties field of TAG the location the data is to be written. This will hardcode where the data is to be written. This may make your code easy or hard.??

    Look at the attached to see this code and run it.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    08-04-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Office 365
    Posts
    176

    Re: From UserForm TextBoxes to specific cells on worksheet

    Hi Marvin,

    that looks like it might suit my needs perfectly - I'll test it out at work over the next day or two and I'll get back to you.

    Cheers,

    AJ

  4. #4
    Forum Contributor
    Join Date
    08-04-2010
    Location
    Adelaide, Australia
    MS-Off Ver
    Office 365
    Posts
    176

    Re: From UserForm TextBoxes to specific cells on worksheet

    Marvin,

    I tried it at work last night and it worked a treat and I discovered that the listbox and combobox also have a TAG function since I may need to use one or two of those as well.

    Thanks very much for the nudge in the right direction - I learned something new. :-)

    Cheers,

    AJ

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-03-2014, 02:19 PM
  2. Search worksheet for data in multiple textboxes in userform and display in another workshe
    By SierraKilo78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2013, 09:59 AM
  3. [SOLVED] Taking information from worksheet and transferring it to Userform textboxes
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2013, 12:08 PM
  4. Excel 2003: Worksheet cells populate textboxes on a userform
    By SHU_STU_0609 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 01:24 AM
  5. [SOLVED] Populating userform textboxes with specific record/row in excel worksheet
    By danmack in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-19-2012, 05:25 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1