+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    renaming worksheet and moving data based on date

    Hi everyone!
    I am in desperate need of assistance with this excel macro!I have imported csv data into a worksheet template but I want it to acutomatically rename the active worksheet with the first 5 letters in cell B2 coupled with the Date in D1 eg campb11032010. I have tried a few macros and it does not want to work for me!!! Additionally I would like this data in column F2:F24 to transfer into another worksheet called campbells into a column based on the date. ANY HELP WITH THIS WOULD BE MUCHLY APPRICIATED!!!!!!!
    Matthew
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,228

    Re: renaming worksheet and moving data based on date

    This line of code will do that:
    Code:
        ActiveSheet.Name = Left([B2], 5) & "-" & Format(Date, "MMDDYY")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0