+ Reply to Thread
Results 1 to 12 of 12

Adding Sheets - New Sheets to be named a specific cell within Each Sheet

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Good Morning -

    I've gotten to about 90% of where I need to be thanks to help from this forum and JBeacaire and just need a little push to the end.

    Currently the script I am using is is splitting out a worksheet into seperate worksheets based on unique values in column L, Adds subtotals to the bottom of column W and Z and changes my amounts to Accounting format.

    Essentially the last thing I need is to have every new sheet being created to be named the value in AE2.
    My problem with this is that as you can see from the attached example (confidential information is X'd out) Column AE contains values larger than 31 characters and also some characters that are not allowed in sheet names. (/ for example)

    What I'm wondering is if someone can help me add something in to delete all non-allowed characters from column AE, Trim Column AE to 31 characters and then when the sheets are being added name them the value in column AE.

    I've found a workaround just doing the format manually and using a name change Macro but I was just hoping to combine it into this macro to avoid having to run two. Any help with this will be greatly appreciated.

    *Original Macro Script to split sheets is from JBeaucaire*

    Please Login or Register  to view this content.
    TEST.xls

  2. #2
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    I apologize as I left out a part of this request. Also, columns W through Z come out of the database I pull from as for example 10000 when in reality the value I need is 100.00 essentially missing the decimals. I wasn't sure if there was something we could add to divide all of those values by 100 and replace them either before or after making the new sheets. If this is a bit too much please let me know and I can find work arounds.

    This is the lowest priority of the above requests but would be awesome to have built in as well.

    My goal is to just be able to run my report, extract out of my database and run this macro to format without needing work arounds but if this isn't 100% possible, I get it completely.

    Thanks again for any help in advance.

  3. #3
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Bump. No Response.

  4. #4
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Bump. No response.

  5. #5
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Bump. No response.

  6. #6
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Bump. No response.

  7. #7
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Bump. No response.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    I think you'll find that when YOU bumped the thread the first time less than 3 hours after posting, you actually made it harder for our contributors to see and respond to your thread. Most "busy" helpers here use the UNANSWERED THREADS link in the menu bar above to see a list of questions no one has answered yet. When you responded (bumped) your post you took your thread forever off that list.

    Oops. You'd think bumping would help, but each bump just makes your thread look like it has more and more responses. Keep that in mind next time. Patience. On this forum, I'd not bump a thread for at least 2 days, if ever.
    _________________
    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!)

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Add this:
    Please Login or Register  to view this content.

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    All good?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Registered User
    Join Date
    06-14-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    Sorry, couldn't test until I got to work. Works awesome.

    Marked As Solved.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Adding Sheets - New Sheets to be named a specific cell within Each Sheet

    This can be reduced:
    Please Login or Register  to view this content.
    ..to
    Please Login or Register  to view this content.
    Try adding this and moving this down:

    Please Login or Register  to view this content.

+ 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