Results 1 to 2 of 2

Thread: Autocalculate average formula on inserting a new row

  1. #1

    Autocalculate average formula on inserting a new row



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I have a sheet(Sample.xlsx) in which weekly data is collected and this is done by using the VBA code(Present in Copy 1 and Copy 2 button in Master US.xlsm) written by me. But in my code, it inserts a new after asking two parameters, i.e. line range(i.e. row no for eg A64) and date. After the new row is inserted, the average formula below the row need to change accordingly with the new row that gets inserted but it remains the same. :-( .I wanted the average formula to change to new new average after the below row is inserted and the formula to be dragged to other column of the row using the VBA Script that is already present in the Copy 1 and Copy 2 button in Master US.xlsm.

    Can anyone please help me to accomplish this .
    Sheet attached along with VBA Code in "Copy 1" and "Copy 2" buttons.

    Master US.xlsm Sample.xlsx

    Thanks in advance.:-)

  2. #2
    Acolyte Sixthsense's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    26
    Articles
    0

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •