+ Reply to Thread
Results 1 to 8 of 8

Thread: Using userfrom to add a new row, column

  1. #1
    Registered User
    Join Date
    05-03-2008
    Posts
    23

    Using userfrom to add a new row, column

    Please take a look at the attached workbook. I'm trying to create a userform that will add employees to a hidden worksheet. I've seen this done before but the Excel file is locked and password protected so I can't see the code. I basically need it to add an employee to an existing hidden sheet (as well as be able to delete). It'll make more sense when you take a look at the workbook and see the existing userforms I've created. The last two command buttons on the "Revenue Forecast" sheet only show the userform, those userforms don't work yet which is what I'm trying to figure out.

    The passwords are "123" for anything that requires a password. Any help at all is appreciated.

    Thanks in advance!
    Last edited by SoCalRizzy; 08-11-2008 at 02:49 PM.

  2. #2
    Registered User
    Join Date
    05-03-2008
    Posts
    23
    I guess I can't attach the file because its too big. I can email it to whomever can take a look at it, just reply or PM with an email address.

  3. #3
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile

    Good evening SoCalRizzy

    Have a look at this workbook - it's a userform that creates a simple contacts database on a visible page, but the technique is the same. All the code is unlocked and available for viewing.

    HTH

    DominicB
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-03-2008
    Posts
    23
    Here, I compressed the file...

  5. #5
    Registered User
    Join Date
    05-03-2008
    Posts
    23
    Anybody had a chance to look at this and have any suggestions? I've racked my brain for 2 days now and I'm getting no where.

  6. #6
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile

    Hi SoCalRizzy
    1. You still haven't actually uploaded a file.
    2. You haven't had the good grace to respond to, or even acknowledge the one reply you have got.

    DominicB

  7. #7
    Registered User
    Join Date
    05-03-2008
    Posts
    23
    DominicB,

    I apologize for not responding to your previous post. I did take a look at it and it does exactly what I need it to do for creating a new line item every time I want to create a new employee record. Thank you for that. Now I have to work with it to incorporate it into my existing sheet. I'm not very good at any of this VBA programming and I'm learning as I go so it takes a little time for me to understand the code.

    And sorry about the file attachment. I'm not sure what is going on with it. I noticed the first couple of times the file was too big so I tried compressing it and I thought the last time it worked. I guess it didn't. So once again, I shall try again.

    Thank you again for any and all help.

    Regards,

    JR

    Quote Originally Posted by dominicb
    Hi SoCalRizzy
    1. You still haven't actually uploaded a file.
    2. You haven't had the good grace to respond to, or even acknowledge the one reply you have got.

    DominicB
    Attached Files Attached Files

  8. #8
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003 & 2007
    Posts
    3,714

    Smile

    Hi SoCalRizzy

    I have added some code into your userform that will make your worksheet visible, add the information and then hide it again, as you can't do it with the sheet remaining very hidden as it is. I've also change your tick boxes to option buttons, as a user could erronously tick both boxes, but with option buttons the default behaviour is to select one only.

    Quote Originally Posted by SoCalRizzy
    I'm not very good at any of this VBA programming and I'm learning as I go so it takes a little time for me to understand the code.
    The code I've added needs tidying a little - what I've done so far just puts you on the right road. Try compariong it to the workbook I posted earlier to see the similarities in the two.

    HTH

    DominicB
    Last edited by dominicb; 08-19-2008 at 04:31 AM.

+ 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.2.0