+ Reply to Thread
Results 1 to 8 of 8

Code to transfer userform info to worksheet

  1. #1
    Registered User
    Join Date
    03-03-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Question Code to transfer userform info to worksheet

    Hi,

    I have worked out a code which does not seem to be working.
    I am an absolute learner to excel vba. Presently using excel 2010.
    I have designed a userform with dropdown lists in comboboxes and scrollboxes. The data needs to be transferred to various cells in a worksheet.
    However the code i have is not reporting any errors nor is it giving any output. I am attaching the code alongwith.
    Please Login or Register  to view this content.
    Last edited by Masquerader1973; 03-04-2012 at 01:45 AM. Reason: Solved

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Code not working

    Upload a workbook with the offending userform

  3. #3
    Registered User
    Join Date
    03-03-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Code not working

    Thanks for the speedy reply Dave.
    I'm attaching the file alongwith.
    It is basically a Pilot logbook for getting various data together and thereafter collating them for other output.
    I have prepared the stuff with a lot of help from the internet and very largely from your site albeit. :-)
    I am presently working on the frmutilitytool userform.
    Thanks a ton in advance.

    One other request. On the DATA sheet in column 'G' are the names of various airfields and their ICAO designators in column 'F', Is it possible for the user to select an airfield from the list on the form and when he moves away to another box for it to show the ICAO designator instead of the selection? Trial VBA for Logbook big.xlsm

    N.B: You might find the code very novice-like as I have never worked on vba before, but am trying to use it and have discovered that it can be a very powerful tool.
    When you open the sheet go to any other sheet and then back to sheet one for the code to work the way i plan to have it open. Thanks again. and sorry for the bother.

  4. #4
    Registered User
    Join Date
    03-03-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Code not working

    Oh and Dave I was using the Submit Test button on the RHS Page to test code working or not before transferring it under the submit command button.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Code not working

    Your Code was working, it thinks the last row is row 10000 and down there is where is was putting you info.
    A row count may work better
    Please Login or Register  to view this content.
    Working on the other part.
    Last edited by davesexcel; 03-03-2012 at 08:57 AM.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Code not working

    Here is a stripped down version of your workbook, Check out the UserForm example
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-03-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Code not working

    Hey Dave Thanks.

    I guess It must have happened cause i had worked out a formula on column 'U' to give a blank instead of value zero (numeral zero). I'll amend that.

  8. #8
    Registered User
    Join Date
    03-03-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Code not working

    Thanks a ton Dave. You Rock!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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