+ Reply to Thread
Results 1 to 10 of 10

Some useful macros that I've accumulated

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Some useful macros that I've accumulated

    Hello everyone,

    Since I'm still pretty novice at creating macros but wanted to find a way to contribute to the forum, I figured that I would post a few of the different macros that I've come across in the hopes that someone else might find them of use. Some of these are a product of members of this forum replying to my requests for help and some are from other searches that I've done.

    Enjoy,
    Tristan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Some useful macros that I've accumulated

    It would be helpful for you to list what macros you have and what they do, so people can search for them and whatnot.

    While we are on the subject, I found these macros helpful as well:
    http://chandoo.org/wp/2013/11/19/sec...acro-workbook/
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Some useful macros that I've accumulated

    That looks very impressive, Tristan, thanks for sharing
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: Some useful macros that I've accumulated

    Do you mean post each one as an individual thread? That definitely makes more sense for people to actually be able to find them. I'll get on that this evening.

  5. #5
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: Some useful macros that I've accumulated

    Quote Originally Posted by FDibbins View Post
    That looks very impressive, Tristan, thanks for sharing
    Just so everyone knows, all I've done here was compile the work of others that I've found to be extremely useful in my day to day. I don't want to take any credit for this. Everyone on this forum has been amazing and all the credit should go to the moderators and everyone else that actually knows what they're doing.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Some useful macros that I've accumulated

    Quote Originally Posted by trisoldee View Post
    Do you mean post each one as an individual thread? That definitely makes more sense for people to actually be able to find them. I'll get on that this evening.
    No I meant include a summary of all the macros so this thread will be searchable and will come up when people search in the future. Does that make sense?

    Or just paste it to the forum and break each piece of code out INTO code so it looks pretty.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Some useful macros that I've accumulated

    Something like this:


    Macro to shade alternating rows grey to make a list a little easier to read.

    Please Login or Register  to view this content.

    Macro will merge multiple workbooks to a single sheet in a new workbook, a browser window will come up so you can select the files you want. I’ve used this when merging information in the same format sent in from various sources.

    Please Login or Register  to view this content.
    This one basically does the same thing as above only it will put each worksheet on it’s own tab in the new workbook.

    Please Login or Register  to view this content.

    And this one will merge all of the worksheets in a workbook to a single worksheet.

    Please Login or Register  to view this content.

    Someone on the forum just sent me this one because the one that I had was a giant mess. This will print the first worksheet in all of the selected workbooks. A browser window will come up to let you select the files you want.

    Please Login or Register  to view this content.
    This macro will copy the active worksheet but will allow you to specify the number of copies that you want.

    Please Login or Register  to view this content.

    This will run text to columns using | as the delimiter through all of the sheets in a workbook.

    Please Login or Register  to view this content.

    A final item that I find myself using constantly is that when you want to include an auto fill in your macro you need to change what the recorder produces to something like this or the range will only copy the data as far as it did when you recorded it.

    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Some useful macros that I've accumulated

    I like this one to change all the fields in all of my pivot tables from COUNT OF to SUM

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Some useful macros that I've accumulated

    It's a good idea, thx trisoldee! I,ve seen a file having a lot of examples, I am sorry if I wrong but it had posted by TMS...
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  10. #10
    Forum Contributor
    Join Date
    07-18-2012
    Location
    New York
    MS-Off Ver
    2016
    Posts
    193

    Re: Some useful macros that I've accumulated

    To use paste special as values without having to touch your mouse.




    Sub pastevals()
    '
    ' pastevals Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+L
    '
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    End Sub

+ 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. How to set a VBA to calculate accumulated balance?
    By jasonlewis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-05-2013, 05:12 PM
  2. Accumulated profit
    By shades99 in forum Excel General
    Replies: 2
    Last Post: 01-20-2012, 04:01 AM
  3. Excel 2007 : Accumulated Pump hours
    By creedz90 in forum Excel General
    Replies: 2
    Last Post: 01-15-2012, 08:49 PM
  4. accumulated interest
    By anon125 in forum Excel General
    Replies: 0
    Last Post: 09-08-2008, 11:42 PM
  5. Choosing which sheets to be accumulated
    By Loranga in forum Excel General
    Replies: 4
    Last Post: 01-31-2007, 01:47 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