+ Reply to Thread
Results 1 to 7 of 7

Move to next txtbox

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37

    Angry Move to next txtbox

    I have designed my user form and it seems to work except that the cursor does not move to the last box! It allows you to complete all fields and then refuses to go to the last comments field. In addition to this I dont know how to write the data from the completed forms to a spreadsheet. CAN ANYONE PLEASE ASSIST?

    Very desperate
    Last edited by gelandl; 08-25-2008 at 07:52 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You will get a better response if you paste a copy of your workbook
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867
    Good afternoon gelandl

    First of all, from the VBE go to View > Tab Order and make sure that ll the textboxes are there. You can then move the textboxes up or down, so that the tabbingsequence is how you want it. If this doesn't work, you may need to post your file ...

    With regard to your second question, have a look at the attached file which demonstrates how to do this.

    HTH

    DominicB
    Attached Files Attached Files
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37

    Move to next textbox

    Thanks. It seems as though my code is riddled with errors.
    Tab doesnt take you to comments box at end
    info does not write to a spreadsheet( Icopied the code from a online tutorial and tried to tweak is for my purposes, but I had no clue what to do with the bit that writes the data on a spreadsheet.)
    Attached Files Attached Files

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi gelandl

    Psssst, *whispers* it's a listbox, not a textbox, and as you've not assigned any items to it, it can't be selected. Change it to a textbox, and you'll be able to select it.

    As for the copying to cells bit, have you had a look at the example file I attached?

    HTH

    DominicB

  6. #6
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37

    txt box

    Thanks for the tips. text box sorted, going to have closer look at the template you sent to understand the coding so that I can replicate on mine.

  7. #7
    Registered User
    Join Date
    08-21-2008
    Location
    South Africa
    Posts
    37
    Hi there

    I am back again. I have nearly completed my userform. All the data in my text boxes are writing to a spreadsheet as meant, however the options selected do not reflect. Any help on why this information would not show?

+ 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. If/Then Statement to move row to a different sheet
    By Mcfish in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2010, 05:45 PM
  2. Macro/If Then statement to move a row of data
    By Mcfish in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2008, 03:28 AM
  3. move worksheet / macros
    By kidsalot in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-15-2007, 05:16 PM
  4. Move a cell which in turn moves a folder?
    By icedtc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2007, 03:31 PM
  5. Run-time error '1004' Move Method of Chart class failed
    By skyreaver88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2007, 05:17 PM

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