Results 1 to 5 of 5

VBA to Insert row & data from user form in list

Threaded View

  1. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    VBA Help for Novice on Work Project

    Hi there,

    Take a look at the attached modified version of your workbook and see if it does what you want.

    A few points:

    I've included a SUMIF formula to calculate the total lengths of all components not flagged with "x" in Column D

    Instead of using the UserForm to specify the Attachment as being inserted between Joint X and Joint Y, the User selects the cell containing Joint X in Column A of the "Tally" worksheet (before displaying the UserForm), and the Attachment is automatically inserted on the row immediately underneath the selected cell.

    The list of Casing Attachment names is specified in a table located on the "Attachments" worksheet - you should not leave any blank rows between these names. These names will be displayed in the dropdown list of the ComboBox on the UserForm. Up to 20 names may be inserted - if you need more, just increase the value in Cell B3.

    The "Tally" worksheet contains four named (single cell) ranges and two Named Formulas which are used in the SUMIF formula mentioned above - if you delete Row 5 or the row containing the "Total Length" cell, neither the SUMIF formula nor the VBA code will work correctly. I don't know how you intend to use the worksheet, so I do not know what "Anti-Gorilla" protection is appropriate.

    I hope the attached is useful for you - please let me know how you get on.

    Greg M
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] hELP FOR MY PROJECT (IN PROJECT SHEET CODE NOT WORK,, OUTSIDE THAT CODE WORK)
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-06-2013, 06:53 AM
  2. [SOLVED] Novice trying to work how assign value in a cell based on another cell
    By jcartworx in forum Excel General
    Replies: 7
    Last Post: 08-30-2012, 01:30 PM
  3. Work-date project
    By greekboyuk in forum Excel General
    Replies: 0
    Last Post: 05-17-2012, 08:54 AM
  4. Cross-Referencing Help for Work Project
    By clayferg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2009, 04:48 PM
  5. Beginner needs help w/first work project
    By Buckwheat in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-12-2005, 04: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