+ Reply to Thread
Results 1 to 4 of 4

VBA Code that Refreshes/Reopens Current Excel Workbook

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    1

    VBA Code that Refreshes/Reopens Current Excel Workbook

    Hello,

    I manage a networked system of computers at my local office, and I was hoping to find some VBA help. I have an Excel file hosted on my PC that contains local data without external links to outside data. I personally add/delete data to the Excel file daily and other users who open said file on my network can open a copy (Read Only since I keep the master file open on my PC). Users currently have to close their copy of the file and reopen it every time they want to update the
    worksheet (again, no external references). I'd like to add a macro/VBA script that would allow a user to basically refresh the current worksheet to include any changes I've made to the master file.

    I searched some of the threads and saw a command of ActiveWorkbook.RefreshAll, but that didn't work. Is there a macro/VBA script that I can tie to a button that would refresh the user's Read Only copy of my file without having to close/re-open the file?

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    863

    Re: VBA Code that Refreshes/Reopens Current Excel Workbook

    Not sure if VBA is the answer here. I think you maybe just need to allow the Sharing of the Workbook in the office. Other's can the see the change realtime as they happen, and I believe (but not certain) you can limit what each user can do to the file.

    A basic google search on Excel Workbook sharing may help.

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    Central Texas
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: VBA Code that Refreshes/Reopens Current Excel Workbook

    Quote Originally Posted by ptmuldoon View Post
    Not sure if VBA is the answer here. I think you maybe just need to allow the Sharing of the Workbook in the office. Other's can the see the change realtime as they happen, and I believe (but not certain) you can limit what each user can do to the file.

    A basic google search on Excel Workbook sharing may help.
    "Review" tab >>> "Allow User to Edit Ranges" >>> followed by "Protect and Share Workbook" with a password.
    Oh! I get it. I need rep--->҉

  4. #4
    Registered User
    Join Date
    04-10-2014
    Location
    Tallahassee, FL
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: VBA Code that Refreshes/Reopens Current Excel Workbook

    What you could do is create a button that runs a macro that overwrites a remote file with a current version of the file and then automagically converts it to Read-Only (as a file attribute) so others can't change it. This won't allow others to refresh it, though, without reopening.

    Another option can use external data queries (users would query your file, which must be visible on the network to be refreshed). This would eliminate the need to reload the file.

    Or, outside of using Office, you can create a shared Google Sheet and update that and it will change live time without the need for refresh.

    Just a few ideas off the top of my head.

+ 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. VBA code to copy data from current workbook to another workbook and send email
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2015, 06:47 AM
  2. Screen refreshes after code finishes (Causing a unwelcome delay)
    By SocratesJC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2014, 09:51 PM
  3. [SOLVED] Opening new workbook and pasting values into current workbook - code issues
    By Stew1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2014, 07:56 AM
  4. VBA CODE that REFRESHES ALL WORKSHEETS
    By drobinson782001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2013, 11:43 PM
  5. Excel reopens workboog after closing it.
    By Fred Flintstone in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 10:05 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