+ Reply to Thread
Results 1 to 4 of 4

Renaming new worksheet using date and name

  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Renaming new worksheet using date and name

    Hi Everyone,
    I am having a issue writing a macro. See attached Excel file..I am trying to rename a worksheet with a date (Cell D1) and the first 5 letters of a name (CellB2) and then have the F2:F28 column transfer into another worksheet (Campbells!) based on the date (Cell A3:E3) Any help with this would be fantastic!!!!
    Thanking you in advance
    Matthew
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: Renaming new worksheet using date and name

    Hi Matthew

    I think the code below should help you towards acheiving your desired result.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-10-2010
    Location
    Victoria, Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Renaming new worksheet using date and name

    Hi,
    It renamed the new worksheet, but didnt transfer the data into the campbells worksheet....and wants to debug on the following line...
    wsSum.Cells(3 + n, col) = wsMain.Cells(1 + n, "F")
    ???
    PS I am using Office 2003 (Im not sure if that makes a difference for VB code?)
    lol thanks for the quick reply though, that was awesome!
    Matthew

  4. #4
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: Renaming new worksheet using date and name

    Hi Matthew

    The problem is that the cell D1 has a formula '=TODAY()' as a result the date in the cell is not available on the other sheet.

    I have added some additional code, to let you know that the date has not been found.


    Please Login or Register  to view this content.
    Regards
    Last edited by excelxx; 03-16-2010 at 05:41 AM.

+ Reply to Thread

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.6.0 RC 1