+ Reply to Thread
Results 1 to 3 of 3

How to add a new row and a number to the first cell of the new row

  1. #1
    Registered User
    Join Date
    09-22-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 10
    Posts
    21

    How to add a new row and a number to the first cell of the new row

    I am trying to add a new row the cell (A,3) - Cell (A,2) is bigger than 2.5, and then on cell(A, new row) = value of Cell(A,2) +2.5.
    I am using the below vba but not working could someone give me a hint please? Thanks.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JBeaucaire; 04-24-2020 at 03:39 PM. Reason: Added required CODE tags as per FORUM RULES, please take a moment to read them (link above in menu bar)

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,962

    Re: How to add a new row and a number to the first cell of the new row

    Try this code:
    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    09-22-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 10
    Posts
    21
    Quote Originally Posted by Bernie Deitrick View Post
    Try this code:
    Please Login or Register  to view this content.
    Thank you for your help! It works now!
    Last edited by sunnyray25; 04-25-2020 at 09:18 AM.

+ 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] Create number list for a second cell based on number selected in first cell
    By AceCo55 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-31-2018, 10:40 AM
  2. [SOLVED] Change a whole number and fraction in a cell to a whole number and decimal in another cell
    By Exceller123 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 11-25-2017, 04:26 PM
  3. Insert number into cell. Have that number taken off every cell in a range. GoalSeek? VBA?
    By JacobRice1985 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-10-2017, 04:16 AM
  4. Replies: 9
    Last Post: 08-15-2013, 01:44 PM
  5. number in cell is number to add number of rows wit copy some contex
    By nicollab in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2012, 08:09 AM
  6. Replies: 7
    Last Post: 12-18-2008, 07:34 PM
  7. formatting cell number based on previous cell number
    By Pasquini in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 01:40 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