+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21

Thread: Macro for creating new workbook based on Decision Dates/Industry

  1. #16
    Forum Moderator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4,383

    Re: Macro for creating new workbook based on Decision Dates/Industry

    Sunil,

    What error are you getting (as per your post 14)?
    Cheers,
    Arlette

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  2. #17
    Registered User
    Join Date
    03-28-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Macro for creating new workbook based on Decision Dates/Industry

    This is the error message -

    Run-time Error "1004":
    You typed an invalid name for a sheet or chart. Make sure that:
    The name you type does not exceed 31 characters.
    Name does not contain any of the following characters: \ / ? * [ ]
    You did not leave


    Once I hit "Debug" on the error message it highlights this code -
    Workbooks(FName).Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = SName

    Quote Originally Posted by arlu1201 View Post
    Sunil,

    What error are you getting (as per your post 14)?

  3. #18
    Forum Moderator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4,383

    Re: Macro for creating new workbook based on Decision Dates/Industry

    How big is the name of the category? Can you change it so that it doesnt cross 31 characters?
    Cheers,
    Arlette

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #19
    Registered User
    Join Date
    03-28-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Macro for creating new workbook based on Decision Dates/Industry

    Which column are you referring to?


    Quote Originally Posted by arlu1201 View Post
    How big is the name of the category? Can you change it so that it doesnt cross 31 characters?

  5. #20
    Forum Moderator arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    4,383

    Re: Macro for creating new workbook based on Decision Dates/Industry

    I meant the industry name (column X) based on which you name the sheets. Can you check to see if your real data has industry names that dont cross 31 characters, including spaces and it doesnt have characters like \ / ? [ ] *
    Cheers,
    Arlette

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #21
    Registered User
    Join Date
    03-28-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Macro for creating new workbook based on Decision Dates/Industry

    Thanks so much Arlette. The Macro works perfect. You made my day!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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