+ Reply to Thread
Results 1 to 6 of 6

User form code issues

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    User form code issues

    I am having a problem getting the dose to find the proper column.

    My data set is a Table "PutterTBL", starting in column AE:AO. For some reason my code does not find the first empty row in column 30.

    Another related question the last 2 columns in my table are formulas that I need to be sure copy down with each new entry. What is the best way to accomplish this?

    The formulas I need to copy down in column 40 & 41,

    Please Login or Register  to view this content.
    in column 40,

    Please Login or Register  to view this content.
    in column 41.

    The code for the form entry,

    Please Login or Register  to view this content.
    I have not entered any code for the formulas as I was unsure how to proceed.

    Thanks,
    Jim O

  2. #2
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: User form code issues

    It appears to be working mow with the exception of the formula for column 41. For some reason it does not copy down. The yes, no formula copies down (column 40) but not the second formula. Any thoughts?

    Jim O

  3. #3
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: User form code issues

    A problem I seem to be running into is that if some of the columns prior to column 31 contain data, the code sees it and wants to insert the new data on the next blank row, even if that row is outside the data set. I need to ignore any data except for data in the data set range.

    Jim O

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: User form code issues

    I just need to find a way to limit the initial search for the first blank row to ONLY the data set (columns 31 - 39) and ignore anything else that may be on the worksheet. So far I have been unable to accomplish this.

    Jim O

  5. #5
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: User form code issues

    Still looking for a solution to my issue. I have attached a non-functional example to show the king of thing I am dealing with.

    With 2 tables or a table and misc. data as shown, I am having a problem getting the code to find the first blank row on the sheet in the appropriate column. If I were to apply the code as I have shown, entries would not start row 11 for table A or row 6 for table B. They will start in row 14 or greater.

    I may not be explaining this as well as I should but I think you can see my problem.

    I need to specify the proper column to search for each userform (table) and I have no idea how to go about this.

    Jim O
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: User form code issues

    Still unable to get this to work properly.

    In the latest attempt I am able to locate the proper column but instead of filling the first blank row it wants to fill the row above the last row with data.

    Here is the code,

    Private Sub CommandButton1_Click()
    Please Login or Register  to view this content.
    Jim O

+ 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. [SOLVED] VB Code to Show User Form so it can be checked then go to Module to run addtional code
    By tcrjmom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-03-2014, 03:11 PM
  2. Issues having more than one user update worksheets using VBA Form
    By llanusa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 04:26 PM
  3. [SOLVED] help! user form issues; can't find subroutines; appearance issue
    By in-over-his-head-bill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2006, 05:30 PM
  4. User Form Initialize Event Issues
    By Randy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-04-2005, 07:30 AM
  5. User Form Code
    By mully in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 05-22-2005, 03:06 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