+ Reply to Thread
Results 1 to 15 of 15

Workbook Sheet Index that works with Excel online

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Workbook Sheet Index that works with Excel online

    Hi,

    I would like to create an index sheet that creates hyperlinks to all sheets in the workbook that updates everytime it opens or there's a new worksheet added. I can do it using VBA but the problem is this doesnt work with excel online is there a way do it as the workbook is a online shared document with multiple users ?


    Thanks

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    There are ways to do it, though it will require Office 365 subscription with MS Flow AFAIK.
    Not sure how it would behave, if you have multiple concurrent users accessing workbook though.

    Instead of triggering it on Workbook open. It should be triggered on file created / modified, using OneDrive / SharePoint trigger.

    You can find some sample and templates if you search.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Quote Originally Posted by CK76 View Post
    There are ways to do it, though it will require Office 365 subscription with MS Flow AFAIK.
    Not sure how it would behave, if you have multiple concurrent users accessing workbook though.

    Instead of triggering it on Workbook open. It should be triggered on file created / modified, using OneDrive / SharePoint trigger.

    You can find some sample and templates if you search.
    Hi,

    This is my O365 licenses
    Attachment 668089

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    Can't see your attachment.

    At any rate, log into your Office.com tenant, and check apps. It is likely that you have license for free version of MS Flow (Power Automate).
    While you can't use more advanced connectors (premium). You can use standard ones including Excel.

  5. #5
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Hi, Yes I have the free version of Power automate. I've having a play and have set a trigger to getworks when a onedrive file is modified, tested it and works but I'm stuck on from this point.

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    Flow will be dependent on few things.

    First, I'd make sure that index sheet has table. To add rows, it's best to work with table object.
    Columns: Name, Link
    Link is constructed using Hyperlink function using "#SheetName!A1" as link target.

    Then you'd use "Get worksheets" and "List rows present in a table" steps as parallel steps.

    Then for each parallel steps add "Select" Data operation action and extract out "Name".

    Then you'd check to see if there is more items on "Get worksheets" side than "List rows..." side, using "Condition" step.

    If true, then you'd use variable and Do While loop to add row(s) to table.

    I'm stepping out now, but will see if I have time later to do more detailed sample.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    Here's how I'd do it.

    1. As mentioned make sure index page has Table with columns Name and Link.
    2. Link formula is...
    =Hyperlink("#'"&A2&"'!A1","Link")

    3. Back in your flow after "Trigger" event. Add "Initialize Variable" action. Name it "Counter", Type Integer and Value 0.

    4. Next Add "Get worksheets" action, and choose your workbook.

    5. Add parallel branch, "List rows present in a table" and choose your table for links.

    6. Below "Get worksheets" add "Select" data operation. From: dynamic content 'value' from "Get worksheets" step. Add Map, Key = "Name" and dynamic content 'Name' of "Get worksheets" step.

    7. Do the same for "List rows..." branch as well.

    8. Using "+ New Step" button, merge two branches into single flow. Add "Condition" control.

    9. For left side of condition, use Expression. length(body('Select'))

    10. Choose is greater than condition.

    11. For right side of condition, use Expression. length(body('Select_2'))

    12. Leave If no branch blank. Add "Set Variable" step to If yes branch. Choose 'Counter' variable, and value using Expression. length(body('Select_2'))

    13. Add "Do until" control. Dynamic content 'Counter' is equal to Expression length(body('Select'))

    14. Add "Add a row into a table" action, Choose the link table object. Add following Expression to "Name" column, leaving "Link" column blank.
    split(string(body('Select')?[variables('Counter')]),'"')[3]

    15. Finally add "Increment variable" step. 'Counter' by 1.

    See below for overview of MS Flow.
    0.JPG

    And condition part expanded.
    1.JPG

  8. #8
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Sorry to be a pain (really appreciate the help as new to ms flow ), I'm stuck on step 5 as cant seem to select a table, I've attached a jpg of step error

    Capture2.JPG

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    Do you actually have named table?

    It can't be just a list on the sheet. You need to select range and convert to table using "Format as Table" button in Home ribbon tab.

    Oh and also, the left side of the mapping. Just type the text, no need for it to be dynamic.

  10. #10
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Doh!!!

    Done that, now I have a problem with the variable on "list rows present in table", step 7, its not showing "Name" for map or key

    Capture2.JPG
    Capture3.JPG

  11. #11
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    Which column do you store sheet name in? I assume "Index" use that instead then.

    It shouldn't impact downstream process. As that side is only used to check # of rows present in table.

  12. #12
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Completed and test run is say successful but it not actually added anything to the Index sheet table

    Attachment 668258

    Attachment 668259

    Attachment 668260

  13. #13
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    In run history. Go into each step and expand. It will show you what the output is and which path the flow took.

    FYI - Your attachment is broken.

  14. #14
    Registered User
    Join Date
    07-09-2015
    Location
    Cardiff
    MS-Off Ver
    office 2007
    Posts
    23

    Re: Workbook Sheet Index that works with Excel online

    Looking at the history details it says this (hopefully the jpg attachment works this time)

    Capture2.JPG

  15. #15
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Workbook Sheet Index that works with Excel online

    So condition wasn't met, and the flow branched to "If no" path and finished processing.

    What is your condition argument? Including expression used.

    Note: You can click on "..." at top right of the Condition step. "Copy to my clipboard" and paste it into text editor. Use CTRL+F to find "condition" string.
    There you'll find "expresstion" followed by json string for the step.

+ 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. [SOLVED] IFerror(index) formula works on one sheet, but not another
    By shearnlilker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2019, 04:04 PM
  2. Opening Online EXCEL to To Top Of Workbook
    By JerryI in forum Excel General
    Replies: 2
    Last Post: 01-09-2016, 06:35 AM
  3. How to create online help within an excel workbook.
    By artemus06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2015, 06:08 AM
  4. [SOLVED] Index look up with multiple matches - works for one sheet, not another.
    By gr8whtd0pe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2015, 09:25 PM
  5. Moving excel workbook online - SQL server?
    By Armitage2k in forum Excel General
    Replies: 4
    Last Post: 09-06-2014, 05:39 AM
  6. index & mach works wthin workbook but not seperate workbooks help!!!
    By mmcoordes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2013, 09:25 PM
  7. Excel Addin works that works on a template workbook
    By s.jay_k in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2006, 03:35 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