+ Reply to Thread
Results 1 to 4 of 4

Macro not working in Office on the Web

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Post Macro not working in Office on the Web

    Hi,

    Wasn't sure where to list this but I figure as I want a macro to work where better to come.
    Sample attached, if you double click any numbered group it will background color change to green, again then it will go back to original color.
    This uses doubleclick VBA macro to achieve and works exactly as required

    The workbook is to be shared within an organisation and will be using Excel in browser on the web, macro's not supported.
    Is there a way to achieve the same results without using macro's so it will work on shared file?
    I know I could use CF but that would mean user input, trying to achieve the simplest method

    TIA
    Tez
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Macro not working in Office on the Web

    The only way would be to use conditional formatting, but you wouldn't be able to use a click event or any automated trigger, you would need to create a switch using a data validation list.

  3. #3
    Valued Forum Contributor
    Join Date
    08-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, Office 365
    Posts
    467

    Re: Macro not working in Office on the Web

    Hi

    As you said, you can't use macros for an Excel file while using that file in a web browser.
    Your file can contain macros, but they are disabled in the web.

    So the only way to do as you want is via CF.

    In the attached file, I modified your layout a little to allow the User to Enter/Clear an "x" in a block's-header-row.
    This creates the same effect as using the double-click macro, using Conditional Formatting.
    The slightly tricky part was to modify your macro a little, to allow both methods to be available when using the Excel file on a desktop.

    So, on a desktop, you can either double-click as before, or Enter or Clear the x in any of the block's header-rows.
    (The "x" is arbitrary, it can be any non-blank-character you want).

    zeddy
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Macro not working in Office on the Web

    Thanks to you both for your help.

    I figured CF was the only way to go but just wanted to clarify, I was hoping to have no user interaction but I guess minimal is acceptable lol

    @ZZZeddy I like your idea with the "x" so will probably base the final file on your sample. Thanks

+ 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. Office 365 SORTBY Function not working with INDIRECT and Office ProPlus
    By ExcelWombat in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-13-2021, 01:18 AM
  2. "save attachment" macro no longer working after upgrate to Office 365
    By Arnold Layne in forum Outlook Formatting & Functions
    Replies: 11
    Last Post: 09-13-2019, 10:47 AM
  3. [SOLVED] Macro working perfectly on MS office x86 but not working on x64
    By alexgoaga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2017, 05:04 AM
  4. [SOLVED] Code not working in Office 2010 and Office 2016
    By amitmodi_mrt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 02:48 PM
  5. Macro not working in Office 2010
    By dperry in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-14-2012, 03:29 PM
  6. macro built with Office 2003 not working on Office 2007
    By pako87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2009, 08:12 AM
  7. Working with Office 2000 and Office 2003 - Urgent
    By Suketu in forum Excel General
    Replies: 0
    Last Post: 04-20-2006, 12:10 PM

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