Results 1 to 8 of 8
  1. #1
    ran-d is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Location
    Mojave Desert
    Posts
    4

    Export to Excel as a shared file

    Hi All,
    I'm running a program (Access 2007) that adds many sheets to an Excel file. The file name, which includes a network path and the xlxs extension are stored as a variable name. When all of the queries and processes are complete, I able able to save the file with the following command:
    .Application.ActiveWorkbook.Save



    Is there a way to save this as an Excel Shared filed? So far, my attempts have failed. The simpler the better, I'm newer to VBA.
    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What do you mean by 'Excel Shared file'? Excel files are locked for editing by the first user to open the file.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ran-d is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Location
    Mojave Desert
    Posts
    4
    Quote Originally Posted by June7 View Post
    What do you mean by 'Excel Shared file'? Excel files are locked for editing by the first user to open the file.
    Within my Access VBA coding, I'm able to successfully export data to an Excel file. I am then trying to make the Excel file a Shared Workbook (file) for multi user use.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You mean publish to Sharepoint? http://office.microsoft.com/en-us/ex...005262294.aspx

    Sorry, no experience with Sharepoint or with Shared Workbooks.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ran-d is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Location
    Mojave Desert
    Posts
    4
    Quote Originally Posted by June7 View Post
    You mean publish to Sharepoint? http://office.microsoft.com/en-us/ex...005262294.aspx

    Sorry, no experience with Sharepoint or with Shared Workbooks.
    No, I believe Sharepoint is different. Thanks.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Then need more info. I have never heard of Shared Workbooks and the Sharepoint reference was all I could find.

    Where did you get this idea?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    ran-d is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Location
    Mojave Desert
    Posts
    4
    Quote Originally Posted by June7 View Post
    Then need more info. I have never heard of Shared Workbooks and the Sharepoint reference was all I could find.

    Where did you get this idea?
    Open Excel, go to the Review tab and you'll see Share Workbook. In the subsequent window, checking the "Allow changes by more than one..." box makes this a Shared / Multi User file.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Something new every day ...

    I guess you want to programmatically change this property for a newly created workbook?

    Bing: VBA excel share workbook

    Try: http://www.mrexcel.com/forum/excel-q...-workbook.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 06-18-2013, 01:14 PM
  2. export data on excel file
    By Mina Garas in forum Queries
    Replies: 1
    Last Post: 12-01-2012, 02:43 PM
  3. Export all tables to 1 excel file
    By vestlink in forum Programming
    Replies: 5
    Last Post: 10-03-2011, 02:45 AM
  4. Export to excel (File Name issues)
    By fpmsi in forum Import/Export Data
    Replies: 6
    Last Post: 09-22-2011, 02:09 PM
  5. Export a simple query result to an excel file
    By wop_nuno in forum Import/Export Data
    Replies: 1
    Last Post: 05-21-2009, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums