+ Reply to Thread
Results 1 to 5 of 5

Select tab name with 8 digits and copy back with new name

  1. #1
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Select tab name with 8 digits and copy back with new name

    Hi there to all expert, I need to consolidate tab and copied it back to the tool with modified name,I do have code selecting multiple workbook,list it down on a column, but I am having a hard time on how can I select tab name if the macro determine numeric value and 8 digits only.

    On my example workbook, Copy Worksheet with 8 Digits.xlsm file has macro, if user press "Select files" button and select for example the report LE 440 report,the name of the file will appear on A2 and the content of LE 440 report file has 5 tabs(other tab on the report already fix), now my problem is I have to copied the tab name 15010012,12041003,18520007(which is not permanent every month) back to the tool with Company code(b2) on it ex: 440-15010012,440-12041003,440-18520007. I just need a code to consolidate all tab name when I press Consolidate button. I will be easy because I only give 1 example file to consolidate but what f I have to consolidate multiple files,I have to open it 1 by 1 using looping on macro and consolidate what I need is one of my problem.


    Hope you can understand my problem very well, since I am from other country, I am not sure if I already elaborate my problem well. Thanks and hope you could help me with this
    Attached Files Attached Files
    Last edited by emina002; 06-10-2014 at 06:00 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Select tab name with 8 digits and copy back with new name

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Select tab name with 8 digits and copy back with new name

    Hi there @haripopuri, it works but I need to rename the consolidate tab ex: 440-15010012 etc. If you see macro file on B2 it has 440 which indicate the company code of the report, it will be useful if I have to consolidate multiple tab name for example 15010012 it wont get error because it has unique company code. Thanks for your code
    Last edited by emina002; 06-09-2014 at 07:01 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Select tab name with 8 digits and copy back with new name

    ah, apologies. I missed that part earlier. This one should work fine for you.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-16-2011
    Location
    Philippines
    MS-Off Ver
    Excel 365/Excel 2016
    Posts
    315

    Re: Select tab name with 8 digits and copy back with new name

    Hi There,thanks for your modified code. It really really works now

+ 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. compare 2 different numbers and copy the last 3 digits.
    By Aranell in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-28-2013, 05:04 AM
  2. [SOLVED] Copy certain values (9 digits, numbers only) from range
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-11-2012, 12:24 PM
  3. Replies: 3
    Last Post: 04-22-2012, 09:35 PM
  4. copy formulas from a contiguous range to a safe place and copy them back later
    By Lucas Budlong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2006, 04:35 PM
  5. copy, insert and add digits
    By Ronco Bill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2006, 04:25 PM

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