+ Reply to Thread
Results 1 to 2 of 2

Toggling AutoRepublish

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Sussex, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Toggling AutoRepublish

    Hello,

    I have a large workbook with multiple sheets which has the "AutoRepublish when saved" option to create about 30 HTML files on a network drive each time the workbook is saved.

    This is fine for desktops that are always connected, but for our tablets and when working offline, I'm looking for some way in VBA to temporarily toggle the AutoRepublish feature for all sheets before saving to avoid a load of error messages saying the path isn't available.

    I have an existing Workbook_BeforeSave event that I can use, so I can offer the user a yes/no MsgBox to ask whether to publish or not.

    I've tried a quick Google, but haven't come up with anything - unless I'm searching for the wrong thing!

    Any help appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Toggling AutoRepublish

    Please Login or Register  to view this content.

    Turn on your macro recorder (developer tab) and manually turn off / on auto republishing. Check the new Module that's appeared in the VBA editor to see the result. It'll look very much like the above.

+ 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. Toggling between datasets
    By letangerang58 in forum Excel General
    Replies: 2
    Last Post: 05-01-2013, 10:36 AM
  2. Toggling Between Workbooks
    By scm24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2009, 05:39 PM
  3. Excel 2007 : No Box to Check "AUTOREPUBLISH..."
    By Nate5452 in forum Excel General
    Replies: 0
    Last Post: 12-31-2008, 12:20 PM
  4. toggling through a search
    By exodus125 in forum Excel General
    Replies: 5
    Last Post: 10-27-2008, 02:39 PM
  5. Toggling Worksheets
    By mbarmecha in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2008, 01:43 PM
  6. Auto import & AutoRepublish
    By no dice in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-24-2007, 04:01 PM
  7. toggling
    By jlofritts in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2006, 02:40 PM
  8. Toggling autofit
    By rgarber50 in forum Excel General
    Replies: 2
    Last Post: 09-04-2005, 02:40 AM

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