+ Reply to Thread
Results 1 to 6 of 6

Macro to Name & Save Worksheets

  1. #1
    Registered User
    Join Date
    04-03-2020
    Location
    Mumbai
    MS-Off Ver
    2010
    Posts
    2

    Macro to Name & Save Worksheets

    Hi,

    I dont have any programming skills or how to use macros, so here I am.

    I have around 300 excel files, each of while have around 30 sheets. The only relevant sheet for me is a sheet called "Summary" in each file.

    1. So I have to manually imported all the "Summary" sheets in to a new sheet and now the sheets are called "Summary", "Summary (2)".. and so on.. here is where I need help with the macro

    2. In cell B3 I have the dates for each of the sheets, which are in text format. So I basically want the macro to make a cell B2 in each of the sheet with the formula B2=LEFT(B3,2)&"."&MID(B3,4,2)&"."&RIGHT(B3,2), so that I have the date in cell B2 in MM.DD.YY format

    3. Then I want the sheets to be renamed to the value in the cell B2, i.e the date in MM.DD.YY format

    Can someone please help me with this ? I basically need a macro for point 2. and point 3.

    Also, is there a way to copy all the 300 "Summary" sheets from the to the new excel sheet using a macro if there saved in the same folder.


    Thanks for you help.. This is an office project so I cant install any third party extensions on my office laptop unfortunately.
    Last edited by AliGW; 04-04-2020 at 05:58 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    6,827

    Re: Need help with writing a macro

    Hi, welcome to the forum.
    I suggest you start with a Excel VBA tutorial, there are many online.
    the for you simple question has a simple answer: Yes, it can be done with a macro or macros
    The next remarks is: it won't help you if you don't take the time for some basic knowledge and it will also make you see how simple it really is if you take the time (very much needed) to develop to your needs.
    Here's a nice place to start, many examples and samples af of course there are many, many more if you Google for VBA tutorials and most are free
    http://www.cpearson.com/Excel/vbe.aspx
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    04-03-2020
    Location
    Mumbai
    MS-Off Ver
    2010
    Posts
    2

    Re: Need help with writing a macro

    Thanks for the reply mate, and yes that is the plan that I learn some of the basic stuff. I have been looking online for tutorials, and will try out your link as well.*The reason I posted the request was that it is something urgent that I need to send out today, and I wont be able to learn this in a day and work it out. I was also hope that uf someone sends the code for the above, I can spend 10 minutes to understand how it works and ask questions if I dont understand it.*As I'm sure I cant ask for help anytime I need something for work, I am working towards learning VBA, but this is a time sensitive project, so thats why I asked for help here*.

    If you or anyone could help for now, that would be great

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    47,167

    Re: Macro to Name & Save Worksheets

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    6,827

    Re: Macro to Name & Save Worksheets

    I'm sorry, yes, I could help but this is not something you can do without a sample and I also don't have the time.
    It is not something that you can copy from another file and see if it works. If you do it, you must do it right.
    No half-measures.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    47,167

    Re: Macro to Name & Save Worksheets

    The reason I posted the request was that it is something urgent that I need to send out today, ...
    I fear you have misunderstood the way these forums work. Let me explain.

    What we do here is offer help, not ready-made solutions. We don't work to a brief, rather assist other members to work through to solutions themselves by offering snippets of code or formulae.

    Those who help here do so for free and in their own time: nobody is being paid, and the help you are offered is of no cost to you.

    Today is a Saturday - the forums are not so busy at the weekend, so the likelihood of your getting the help you need today is far less than it would be on a normal weekday.

    If you need someone to do the work for you today, then you need to find a forum where you can engage someone at an hourly rate to do the work for you. We have the commercial services section, however this is also manned by volunteers, so does not guarantee immediate help.

    I hope that this helps you to understand the nature of these forums a little better.
    Last edited by AliGW; 04-04-2020 at 11:25 AM. Reason: Typo corrected.

+ 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. Writing a Macro to check cell population & then run another macro.
    By OpticsGuy in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-15-2014, 11:52 AM
  2. Novice with VBA and macro writing needing help to loop a macro unti no data
    By jrongone in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-25-2013, 12:19 PM
  3. Writing a macro (copy&paste macro)
    By skatmandu2002 in forum Excel General
    Replies: 3
    Last Post: 02-23-2010, 06:26 PM
  4. writing a macro
    By fodeps in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2009, 05:28 PM
  5. New to Macro writing
    By Going in Circles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2006, 12:30 AM
  6. Re: Macro Writing
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  7. Help with writing macro please
    By clueless_05 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2005, 05:00 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