+ Reply to Thread
Results 1 to 2 of 2

Renaming a workbook and worksheet on clicking a button

  1. #1
    Registered User
    Join Date
    06-20-2015
    Location
    London, England
    MS-Off Ver
    MS Office 2010
    Posts
    24

    Renaming a workbook and worksheet on clicking a button

    Hi,

    Please find attach sheet.

    Demo.xlsm

    I have a Demo sheet . In it i have "Main" workbook which contains a button as"Next Week" which when clicked will change the date in "abc" sheet cell C1 to next week date (i.e. from 14-June-2015 to selected date.)

    I wanted the workbooks named "sheet1,sheet2... sheet7" to change name accordingly to what the date in respective c1,E1...O1

    ie.
    c1 value date will be sheet1 workbook name ie sheet1 will rename to 14-Jun-15
    E1 value date will be sheet1 workbook name ie sheet1 will rename to 15-Jun-15
    G1 value date will be sheet1 workbook name ie sheet1 will rename to 16-Jun-15, etc..

    Additional thing - Renaming the same File/excel sheet to "ABC June 14 - June 20" where ABC is fixed value and June 14 comes from C1 and June 20 comes from O1.

    Thanks in Advance .

    Regards,
    MS

  2. #2
    Valued Forum Contributor Kamboj's Avatar
    Join Date
    09-25-2014
    Location
    India
    MS-Off Ver
    2003 - 2010
    Posts
    430

    Re: Renaming a workbook and worksheet on clicking a button

    here is the solution
    Attached Files Attached Files

+ 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. copying worksheet to same workbook and renaming it
    By georgemathews in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-11-2009, 12:08 PM
  2. print the hiden portion from a worksheet by clicking button
    By ss_bb_24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2008, 02:44 AM
  3. Macro's assigned to a custom toolbar button don't run after renaming the worksheet
    By marcelw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2007, 02:56 AM
  4. Copy information from a worksheet by clicking on a button
    By jumbodogs in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-18-2007, 04:11 PM
  5. [SOLVED] Store data JUST entered in Activecell after clicking command button on worksheet
    By Google@runit.nl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2006, 11:25 PM

Tags for this Thread

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