+ Reply to Thread
Results 1 to 9 of 9

Add data with a userform

  1. #1
    Registered User
    Join Date
    04-27-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Add data with a userform

    I could really use some help, I am doing a 20 hour exam for ICT and have slightly over estimated my problem solving abilities!

    I really really need some help otherwise I will fail the course!

    I am using the following Macro in a UserForm to enter data into a table. I have learnt the code to use in my exam but did not think what would happen if I were to move the table. I really need some help, and would appreciate someone explaining this to me.
    Please Login or Register  to view this content.
    Basically, I currently have a form at A1 to A3.
    eg:
    A B C
    1 First Name | Last Name | Gender
    2 James | Scott | Male

    As it is I can add data with a UserForm and it appears at the bottom of the table.

    I need to be able to move the form so it is not in A1. I have tried changing A to C, D etc. and that worked so I know how to change the column location but I need help getting the data into the table that is on a different row.

    I notice Columns("A") defines the Column for the text to be placed but how do I define Row?

    Please please help!
    Last edited by Leith Ross; 04-27-2009 at 12:47 PM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    04-14-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: PLEASE HELP! Novice trying to get Macro to work

    Try using Range where you can specify the row index and column index

  3. #3
    Registered User
    Join Date
    04-27-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: PLEASE HELP! Novice trying to get Macro to work

    Quote Originally Posted by excel_1982 View Post
    Try using Range where you can specify the row index and column index
    Ok, I am a complete novice so didn't even know a Range feature existed.. but it makes sence.

    I will try to find it now..

    While i'm looking could you possibly explain how it would work? Just in case I can't find any information myself.

    Thanks, much appreciated

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Add data with a userform

    Hello AugustRush,

    Welcome to the Forum!

    As a new member of the forum, please take a few minutes and read the forum rules for posting and general etiquette. To see them, click on the link below...

    Forum Rules
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    04-27-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Add data with a userform

    If I were to name a table, would I be able to put the table name into the code so the text was entered into the table, wherever it was.

    That would help a lot!

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Add data with a userform

    Please take note of what leith hs just posted!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Registered User
    Join Date
    04-27-2009
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    re: Add data with a userform

    Sorry, I misread (stress).

    I will be more careful in the future.

    Thanks

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: Add data with a userform

    Please try to edit your title now

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Add data with a userform

    Your question isn't clear, where is the table to write to?

+ 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