+ Reply to Thread
Results 1 to 9 of 9

Macro for inserting multiple rows with Formulae and formating

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Macro for inserting multiple rows with Formulae and formating

    Hello

    I am Sreeraj and I am in need of help.

    I am developing an excel sheet for my colleagues.

    This sheet will be a dynamic sheet and my colleagues will need to keep on adding data to this file. This data may not use more than 700 rows.

    I need a macro that
    will identify the first blank cell in Column A
    As for the number of rows to be inserted and
    Copy the formulas and formating of the Row above the first blank cell and paste it in the number of rows defined.

    I have a macro (thanks to google) that will identify the first blank cell in Column A and then copy the Row above the first blank cell and paste it once (both the formating and formulae).

    It is given below

    Please Login or Register  to view this content.
    I hope some one can help me with this.

    Regards

    Sreeraj
    Last edited by Cutter; 09-07-2012 at 03:51 PM. Reason: Added code tags

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for inserting multiple rows with Formulae and formating

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro for inserting multiple rows with Formulae and formating

    Hello

    This code doesn't seem to work. Can you please advice how to use it.

    Regards

    Sreeraj

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for inserting multiple rows with Formulae and formating

    attach please a sample file

  5. #5
    Registered User
    Join Date
    09-05-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro for inserting multiple rows with Formulae and formating

    Hello

    Please find attached a file with the macro that i have mentioned in my first mail.

    Is it possible to get a message box asking for the number of rows to be added and that many rows being entered with the formulae and formating.

    Thanks and regards

    Sreeraj
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for inserting multiple rows with Formulae and formating

    Quote Originally Posted by sreerajmp View Post
    This code doesn't seem to work. Can you please advice how to use it.
    on your file my macro works, did you assign to Button ?

  7. #7
    Registered User
    Join Date
    09-05-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Thumbs up Re: Macro for inserting multiple rows with Formulae and formating

    Hello

    I was able to solve the issue.

    Thanks for your help



    Regards

    Sreeraj

  8. #8
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for inserting multiple rows with Formulae and formating

    How did you solve ? please, tell us !

  9. #9
    Registered User
    Join Date
    09-05-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro for inserting multiple rows with Formulae and formating

    I did a bit of trial and error and finally arrived at the desired result.

    Please find attached the file for your reference.

    Regards

    SreerajISIR Report.xlsm

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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