+ Reply to Thread
Results 1 to 7 of 7

a button to repeat a range of cells and update series number

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    68

    a button to repeat a range of cells and update series number

    Hi

    I need your help to optimize a code in one sheet of the attached file and create another one in the second sheet.

    On sheet (Design1) I wrote a code to make a button to copy a range of cells (site info) and paste it below it with a formula to update the number of site with each new site. The code is working but I am sure that the way a wrote it is very poor, I need your input to make it more effective and smart.
    On sheet (sheet2) I have a button that I want it to reproduce the first 10 rows exactly as they are with their color and to extend the series in column A to continue I.e. from 11 to 20 and so on with every click on the button.


    Thank you in advance

    Emma_B
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: a button to repeat a range of cells and update series number

    Hi Emma,
    try it
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: a button to repeat a range of cells and update series number

    Wow works like a charm THANKS. However I need another small help, in the first code I need the site adress cell in the new site "site# 2" to be selected. this should be D17 when click the button the first time and D26 when clicking the second time and so on.

    in the second code I need the new rows to be empty i.e when create new rows eg. 10 to 20 to not copy the content of rows 1 to 10. and to sellect the last empty cell in column B.

    Hope I could explain it well

    Emma_B

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: a button to repeat a range of cells and update series number

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: a button to repeat a range of cells and update series number

    Perfect for the first code.
    for the second code in "sheet2" I still could not have the cell in column B in the last added row selected. so if I have 10 rows and I add another 10 I need the cell B28 to be selected and if I add another 10 the cell B38 and so on.
    Hope I could explain better this time
    btw how to give feeback to to your help?

    Emma

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: a button to repeat a range of cells and update series number

    then so
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: a button to repeat a range of cells and update series number

    that was awesome thanks a lot

+ 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. Repeat value depending on number of entries in another range
    By Sally Rose in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2013, 10:48 AM
  2. Replies: 3
    Last Post: 03-26-2013, 06:06 PM
  3. [SOLVED] update button on userform does not update all cells in worksheet
    By tutke in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-27-2012, 03:07 AM
  4. Replies: 8
    Last Post: 07-23-2010, 02:28 PM
  5. Dynamic range to update chart, multiple series
    By staples in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 07-31-2009, 12:26 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