+ Reply to Thread
Results 1 to 1 of 1

insert row with the formula and borders before or after item based on inputbox user

  1. #1
    Forum Contributor
    Join Date
    02-08-2021
    Location
    africa
    MS-Off Ver
    2016
    Posts
    413

    insert row with the formula and borders before or after item based on inputbox user

    hello

    I need macro to insert row based on using two inputboxes(before,after)

    first should show "before inputbox " when write the item based on column B should insert row before the item with the same borders , formulas and if there is any cell is empty or contain formula ,then should show hyphen as in sheet RES3 when write CR-CCR-1 into inputbox user. and if there is duplicate items when insert row should ignore them and should be before first row for duplicate item .

    second if I press cancel or close or ok "before inputbox" then should show "after inputbox" when write the item based on column B should insert row after the item with the same borders , formulas ,if there is any cell is empty or contain formula ,then should show hyphen as in sheet RES2 when write CCR-2 into inputbox user and if there is duplicate item when insert row should ignore the others and should be after first row for duplicate item

    finally if I don't write any thing into "before inputbox " or "after inputbox" should insert multiple rows at once after last row for each item in column B based on on column A as in sheet RES1 and add the formula by summing the values .the column A when insert multiple rows for each item depends on beginning of the item and finish until the empty last row for this item and should not change its place into cell when insert row whether insert row before or after . with considering the columns and rows will increase every time with the same structure then when insert row with formula,borders should finish until for any column or row contain values , if I run the macro again should replace data because the data it will increase every time into sheet MONTHLY


    NOTE : all of the condition should implement in sheet MONTHLY
    thanks in advance
    Attached Files Attached Files

+ 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] search data based on column by inputbox user and mark the cells in the same row
    By Mussa-A in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-07-2021, 11:29 AM
  2. [SOLVED] MACRO: If user clicks cancel in inputbox,then do nothing. Problem with inputbox appearance
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-05-2015, 04:33 AM
  3. VBA to add borders and insert rows (based on conditions)
    By unitlted_1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2015, 03:29 PM
  4. User inputs value into formula via an inputbox
    By LeapingLizard in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-25-2012, 10:12 AM
  5. [SOLVED] Create borders to enter the number in InputBox
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2012, 10:40 AM
  6. Insert user's name into cell based on windows user login when a button is clicked.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-16-2011, 01:08 PM
  7. InputBox-ow to have a user input text in a inputbox
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2011, 08:17 AM

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