+ Reply to Thread
Results 1 to 10 of 10

Automatically open and close spreadsheets on Google drive

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Automatically open and close spreadsheets on Google drive

    I have 5 spreadsheets that are shared with other staff in the office. We share these spreadsheets using Google drive. Each staff has the ability to edit the spreadsheets. The spreadsheets are "shown" on a wall using an overhead projector. What I am trying to figure out is if there is a way to automatically alternate (or rotate) each spreadsheet. For example, spreadsheet 1 would "show" on the wall for approx. 30 seconds, then spreadsheet 2 would "show" on the wall for approx. 30 seconds, etc. I am new to all of this. Let me say in advance ...your patience is appreciated!

  2. #2
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Automatically open and close spreadsheets on Google drive

    The following code will show each spreadsheet in a workbook in sequence for 30 seconds each.

    modify the line
    Please Login or Register  to view this content.
    to open and close your spreadsheets.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically open and close spreadsheets on Google drive

    Thank you for your response. This works great! Thank you. I was also wondering if there is a code to open workbook1 and have it display for about 30 seconds, then open workbook2 and have it display for about 30 seconds, and so on.

  4. #4
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically open and close spreadsheets on Google drive

    I am having problems with the script that displays the different tabs in a workbook. It is sporadic when I run the script. It will show tab1 for a few seconds, jump to tab3 for a few seconds then jump to tab 1. Sometimes it will show tab2, then jump to tab1, then jump to tab3, etc. Thank you for your help.

  5. #5
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Automatically open and close spreadsheets on Google drive

    Judy can you record a macro where you open the three workbooks in sequence for me?

    You can delete most of the file. All I want the Directory paths so that I can write your macro.

  6. #6
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically open and close spreadsheets on Google drive

    Thank you for helping me with this problem. Listed below are the Google drive paths for each workbook. Is this what you need?

    https://docs.google.com/spreadsheet/...zZ2cwUkE#gid=0
    https://docs.google.com/spreadsheet/...WdUc0cEE#gid=0
    https://docs.google.com/spreadsheet/...pclJweHc#gid=0

  7. #7
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Automatically open and close spreadsheets on Google drive

    Hi Judy

    I cannot access those files.it looks lke you need an email address and password to access them

    the code for accessing the files is apparently very complex, read: http://www.vbaexpress.com/kb/getarticle.php?kb_id=973


    I think you would be better off having all three worksheets open and switching between them.

    So can we try that?

    Can you Open all three sheets and record yourself switching between them for me?

  8. #8
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically open and close spreadsheets on Google drive

    I hope this helps you. I think my problem will be when these .xlsx files are uploaded to Google drive. I'm not sure there is a way to "rotate" them once they are placed on Google drive. Thank you for your help. Judy


    Sub Macro1()
    '
    Workbooks.Open Filename:="C:\Users\Judy\Desktop\Movement on SLB Loads.xlsx"
    Application.Wait (Now + TimeValue("0:00:30"))
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True


    Workbooks.Open Filename:="C:\Users\Judy\Desktop\Claas Inventory Control.xlsx"
    Application.Wait (Now + TimeValue("0:00:30"))
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True


    Workbooks.Open Filename:="C:\Users\Judy\Desktop\Halliburton.xlsx"
    Application.Wait (Now + TimeValue("0:00:30"))
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True
    End Sub

  9. #9
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Automatically open and close spreadsheets on Google drive

    Hi Judy

    Try this.

    The Auto_Open macro is supposed to open all three spreadsheets from your desktop.
    It will then kick of the display macro which will switch between the three sheets.

    I have set the timer to ten seconds. But you can set it to whatever you want.

    Enjoy.

    ***********************************************************************************************************************


    Public MyArray As Variant
    Public count As Integer


    Sub Auto_Open()

    ' Timer Macro
    count = 0

    MyArray = Array("Movement on SLB Loads.xlsx", "Claas Inventory Control.xlsx", "Halliburton.xlsx")

    10 Workbooks.Open Filename:="C:\Users\Judy\Desktop\" & MyArray(count)

    count = count + 1
    If count < 3 Then GoTo 10


    alertTime = Now + TimeValue("00:00:10")
    Application.OnTime alertTime, "DisplayMacro"
    DisplayMacro
    End Sub

    Public Sub DisplayMacro()

    alertTime = Now + TimeValue("00:00:10")
    Application.OnTime alertTime, "DisplayMacro"

    On Error Resume Next

    Windows(MyArray(count)).Activate
    count = count + 1
    If count > 2 Then count = 0

    End Sub

  10. #10
    Registered User
    Join Date
    08-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Automatically open and close spreadsheets on Google drive

    Thank you for your help!

+ 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] Parse Error - Google Drive Spreadsheet
    By mglassco in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 03-22-2013, 03:51 PM
  2. Google Drive Sheet - Simple Formula Help
    By dennybot in forum Excel General
    Replies: 1
    Last Post: 09-29-2012, 04:58 PM
  3. Google Drive time
    By skate1991 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2012, 11:05 AM
  4. Google Drive time
    By kal-el.Kanata in forum Excel General
    Replies: 20
    Last Post: 12-28-2011, 04:54 PM
  5. Open multiple spreadsheets, but close only one
    By Cheri in forum Excel General
    Replies: 1
    Last Post: 02-01-2006, 09:15 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