+ Reply to Thread
Results 1 to 5 of 5

Streamlining Macro Code

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Streamlining Macro Code

    I have a bit of code that pastes the copied selection in 100 different cells. See below for a small sample. I am looking for a way to streamline this so that the macro runs quicker. Is there a way to have the copied selection pasted in 100 different cells without writing the cell destinations on a hundred different lines?

    Please Login or Register  to view this content.
    Last edited by SinGin; 05-15-2010 at 03:33 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Streamlining Macro Code

    This should do what you need

    Please Login or Register  to view this content.

    Expand the range as required

    Hope this helps

    If you need any further information, please feel free to ask further

    However

    If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Streamlining Macro Code

    Thanks, worked great!! In a related question, I tried to get this to work by modifying the code you gave me, but no luck. This code selects and deletes 100 ranges of cells. Is there a way to accomplish this all at once?

    Please Login or Register  to view this content.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Streamlining Macro Code

    Please Login or Register  to view this content.
    ... or just
    Please Login or Register  to view this content.
    Last edited by shg; 05-15-2010 at 01:05 PM.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Streamlining Macro Code

    Awesome. Thank you very much!!

+ 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