+ Reply to Thread
Results 1 to 12 of 12

Extract text from different tabs?

  1. #1
    Registered User
    Join Date
    10-25-2019
    Location
    NY
    MS-Off Ver
    2007
    Posts
    5

    Extract text from different tabs?

    I have a file with 92 tabs and I need to extract text from some of them.

    All of the tabs have certain references, something like this:
    GL Period Properties XLF PageTitle
    GL Period Properties XLD GLPeriodLabel
    GL Period Properties ZLD GLPeriodNumberLabel
    GL Period Properties ZLD PropertiesLabel
    GL Period Properties ZLD DescriptionLabel
    GL Period Properties ZLD CurrentPeriodLabel
    GL Period Properties XLO YearLabel
    GL Period Properties FLP DateFromLabel


    I only need the text of the cells that are in the same row of "ZLD".

    Is there any way to do this?

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Extract text from different tabs?

    Yes. Post an example (upload - under GO ADVANCED) ~ I don't visualize what you're attempting to show....a concrete example would surely help!!

  3. #3
    Registered User
    Join Date
    10-25-2019
    Location
    NY
    MS-Off Ver
    2007
    Posts
    5

    Re: Extract text from different tabs?

    Quote Originally Posted by queuesef View Post
    Yes. Post an example (upload - under GO ADVANCED) ~ I don't visualize what you're attempting to show....a concrete example would surely help!!
    sorry, I can't upload it, but this is the layout:
    A-------------------------B---------C
    GL Period Properties----XLD-------PageTitle
    GL Period Properties----XLD-------GLPeriodLabel
    GL Period Properties----XLD-------GLPeriodNumberLabel
    GL Period Properties----DLP-------PropertiesLabel
    GL Period Properties----PAL-------DescriptionLabel
    GL Period Properties----IAA-------CurrentPeriodLabel
    GL Period Properties----JAK-------YearLabel
    GL Period Properties----IAO-------DateFromLabel
    GL Period Properties----LKA-------DateToLabel
    GL Period Properties----IAO-------DateClosedLabel


    I need to extract only the text after XLD (for instance, PageTitle, GlPeriodLabel) in many different sheets.

    Is there any to do this?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,455

    Re: Extract text from different tabs?

    Yes, you can upload it (or a sample that resembles it - we don't need or want to see sensitive data).

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Extract text from different tabs?

    When you say extract, what does this mean? Will the data be copied and pasted somewhere? highlighted in Yellow? Help us to help you by being explicit in your requirements. We are experts here in excel but do not do mind reading very well if at all.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    10-25-2019
    Location
    NY
    MS-Off Ver
    2007
    Posts
    5

    Re: Extract text from different tabs?

    Quote Originally Posted by AliGW View Post
    Yes, you can upload it (or a sample that resembles it - we don't need or want to see sensitive data).

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Thanks Ali, but I'm still concerned as this is a file from a client for which I'm working with an NDA.

    Quote Originally Posted by alansidman View Post
    When you say extract, what does this mean? Will the data be copied and pasted somewhere? highlighted in Yellow? Help us to help you by being explicit in your requirements. We are experts here in excel but do not do mind reading very well if at all.
    English is not my first language, I apologise. However, as far as I know, to extract means to remove something, so, yes, I need to extract the content into a different file.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Extract text from different tabs?

    Deleted as I misread your needs. Will repost with correct solution.
    Last edited by alansidman; 10-27-2019 at 02:50 PM.

  8. #8
    Registered User
    Join Date
    10-25-2019
    Location
    NY
    MS-Off Ver
    2007
    Posts
    5

    Re: Extract text from different tabs?

    Quote Originally Posted by alansidman View Post
    Deleted as I misread your needs. Will repost with correct solution.
    I did that, but I get a prompt with the text that should be searched "XLD" and a blank area to type. I tried inserting anything and pressing OK but nothing happens. What should I look for here?

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Extract text from different tabs?

    Here is the correct updated VBA. Make sure that you create a sheet named "Result"

    Please Login or Register  to view this content.
    How to install your new code
    • Copy the Excel VBA code
    • Select the workbook in which you want to store the Excel VBA code
    • Press Alt+F11 to open the Visual Basic Editor
    • Choose Insert > Module
    • Edit > Paste the macro into the module that appeared
    • Close the VBEditor
    • Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    To run the Excel VBA code:
    • Press Alt-F8 to open the macro list
    • Select a macro in the list
    • Click the Run button

  10. #10
    Registered User
    Join Date
    10-25-2019
    Location
    NY
    MS-Off Ver
    2007
    Posts
    5

    Re: Extract text from different tabs?

    Didn't work either. I'll give up and do it manually.

    Thank you and everyone else for your time and patience.

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Extract text from different tabs?

    Here is the sample workbook I developed using your abbreviate data.
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Extract text from different tabs?

    'alansidman's logic works!!! 1) I believe there is a typo in the original request (you ask for ZLD, when later you mention XLD in your example file). 2) The macro search works - BUT type in the EXACT letters you want (including capital letters ~ ZLD and NOT zld.). If needed after macro, you can delete duplicates. Please give alansidman credit as that solution works

+ 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. Extract information from five other tabs into one main tab
    By wy52 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2019, 11:19 AM
  2. Extract Data from Multiple Tabs
    By brncfan7 in forum Excel General
    Replies: 2
    Last Post: 06-06-2017, 04:54 PM
  3. [SOLVED] Extract a report from different tabs
    By elad in forum Excel General
    Replies: 5
    Last Post: 11-11-2015, 08:56 AM
  4. using drop down to extract data from multiple tabs?
    By SAHEBDIN in forum Excel General
    Replies: 1
    Last Post: 08-25-2015, 10:03 AM
  5. [SOLVED] Extract data from a workbook with multiple tabs, into a workbook with corresponding tabs
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 11:54 AM
  6. Extract data and paste in seperate tabs
    By kt090678 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2011, 02:32 PM
  7. need to extract two coulms from a workbook with 31 tabs
    By abb16ott in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2008, 01:01 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