logo elektroda
logo elektroda
X
logo elektroda

[Solved] [EXCEL] - Sharing Sheet with Macros & Tables on FTP Network: Overcoming Save Errors & Message

Darekstw 6240 13
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16989873
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    Hello

    I have a problem, namely on network FTP I have excel sheets enriched with macros that copy and paste data from a table into a table in another tgz sheet. Main. Because saving the macro saves and closes both sheets, but it happens that another user can view the main sheet and have it running at that time, when you try to save, we get the message:

    [EXCEL] - Sharing Sheet with Macros & Tables on FTP Network: Overcoming Save Errors & Message

    Then the sheet is closed and there is a situation that the data has not been overwritten in the main sheet because another user had it fired.

    I wanted to share a workbook, but it contains tables and gets the following message:

    [EXCEL] - Sharing Sheet with Macros & Tables on FTP Network: Overcoming Save Errors & Message

    The question on my part is whether it is able to bite somehow differently to be able to share such a sheet?
  • ADVERTISEMENT
  • #2 16990392
    JacekCz
    Level 42  
    Posts: 8670
    Help: 760
    Rate: 1460
    Yes

    Use a database
  • ADVERTISEMENT
  • #3 16990445
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    can it be a little brighter?
  • #4 16992811
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Darekstw wrote:
    I have a problem, namely on network FTP I have excel sheets enriched with macros that copy and paste data from a table into a table in another tgz sheet. Main.


    Before you explain to me - what do you mean by the term on network FTP :?: I propose to do a little experiment :idea: :
    open two instances of Excel on your computer :arrow: in each of them open the same test file. xlsx :arrow: try to change anything on this sheet in one instance and keep these changes :arrow: :cry:

    Databases that your colleague suggests to you JacekCz have built-in mechanisms to prevent uncontrolled multiple access :idea: - but I get the impression that you must definitely change your original concept of network data exchange (what will the server do and what will the clients do?) :D
  • ADVERTISEMENT
  • #5 17005028
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    When I use the term network FTP, I mean a mapped network drive with read and write access to various workstations. On it there is a catalog with excel sheets in which users fill in the data and, after running, the macros save at the same time in the file in which they worked and fall into the sheet that collects the data collectively. However, the problem occurs when one of the users (client) is viewing the sheet and another wants to run a macro at this point to save new data in both his own and collective sheets. Sharing is not an option because I'm using tables in the worksheet. The question is how, then, from this sheet to create a database about which I am writing JacekCz?

    I would like it otherwise, if it is possible? Just do it in such a way that although one or more users are viewing the main sheet they are chopping the data into, another can use a macro on one of the other sheets and save the data in their own and the main sheet.
  • #6 17005575
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Unfortunately, I have no experience with network versions of office, but I have the impression that there it is necessary to install the appropriate group version of the application on the server (with a database or Excel files) and only to this server you set access to all terminals with appropriate permissions to individual files and actions on the server.

    You can also try changing the settings of these files on the network drive by changing the privacy protection options, and setting sharing a workbook or co-creation :idea: - however, I have no way of checking the operation of these options :D
  • #7 17054926
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    Prot wrote:
    Unfortunately, I have no experience with network versions of office, but I have the impression that there it is necessary to install the appropriate group version of the application on the server (with a database or Excel files) and only to this server you set access to all terminals with appropriate permissions to individual files and actions on the server.

    You can also try changing the settings of these files on the network drive by changing the privacy protection options, and setting sharing a workbook or co-creation :idea: - however, I have no way of checking the operation of these options :D


    As I wrote when I share the workbook, I have the error mentioned in the first post, but I was interested in option 1, which you suggested, can you clarify it a bit more?
  • #8 17054995
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    Darekstw wrote:
    I was interested in option 1 you suggested

    My suggestion is related to the test analysis:
    Prot wrote:
    I propose to do a little experiment:
    open two instances of Excel on your computer in each of them open the same test file xlsx try to change anything in this sheet in one instance and keep these changes


    In a normal system this is impossible :cry: however, even theoretically, it is possible with the "workbook sharing" setting on the network server :D
    [EXCEL] - Sharing Sheet with Macros & Tables on FTP Network: Overcoming Save Errors & Message2018-02...png (82.2 kB)You must be logged in to download this attachment.
  • #9 17070074
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    That's right, but when I try to share the spreadsheet in the above-mentioned way, she gets the following message:

    [EXCEL] - Sharing Sheet with Macros & Tables on FTP Network: Overcoming Save Errors & Message

    I use tables and pivot tables in the worksheet.
  • #10 17070355
    Andie
    Level 22  
    Posts: 764
    Help: 84
    Rate: 19
    Darekstw wrote:
    I use tables and pivot tables in the worksheet.

    In my opinion - either convert the table to traditional Excel ranges (then sharing should do the problem - although this is also not certain), or transfer the data to the Access database.


    andie
  • #11 17070366
    JacekCz
    Level 42  
    Posts: 8670
    Help: 760
    Rate: 1460
    Andie wrote:
    Darekstw wrote:
    I use tables and pivot tables in the worksheet.

    In my opinion - either convert the table to traditional Excel ranges (then sharing should do the problem - although this is also not certain), or transfer the data to the Access database.


    andie



    The vast majority of excell's legacy does not fit the relational database in any way, starting from the very concept *). In practice, plow and make a good tool from scratch. Moreover, is Access just the best? It's still a file database, and on shared drives, data protection is so-so. It is 2018 and many tools, whether free or open source.

    There is not much in the Excel range for data division?

    *) I omit that 2/3 of the macros bravely solve - like socialism - problems unknown in other systems
  • #12 17070385
    Prot
    Level 38  
    Posts: 2580
    Help: 574
    Rate: 297
    As the authors of Offica indicate feature-information-shared-workbook Unfortunately, this feature has serious limitations, including pivot tables :cry:
    I see you have a newer Offic - you can verify the new sharing mechanism there :idea:
  • ADVERTISEMENT
  • #13 17072026
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    Andie wrote:
    Darekstw wrote:
    I use tables and pivot tables in the worksheet.

    In my opinion - either convert the table to traditional Excel ranges (then sharing should do the problem - although this is also not certain), or transfer the data to the Access database.


    andie



    Unfortunately, I also use pivot tables in the worksheet, I cannot convert them to traditional ranges.

    So it looks like the project would be best done as a relational database? Excel, unfortunately, cannot cope with this type of topic
  • #14 17338238
    Darekstw
    Level 8  
    Posts: 88
    Rate: 4
    Excel is not able to cope with this topic, please use a relational database for this type of situation.

Topic summary

✨ The discussion revolves around issues faced when sharing Excel sheets with macros on an FTP network. Users encounter save errors when multiple users access the main sheet simultaneously, leading to data loss. Suggestions include using a database to manage data more effectively, as Excel's sharing features have limitations, especially with tables and pivot tables. Alternatives discussed involve converting tables to traditional ranges or utilizing a relational database for better data handling and access control. The consensus is that Excel is not suited for this type of multi-user data management scenario.
Generated by the language model.

FAQ

TL;DR: Concurrent writers to one .xlsx on a share: 0; "In a normal system this is impossible." Resolve conflicts by moving data to a database or changing collaboration mode. [Elektroda, Prot, post #17054995] Why it matters: This FAQ helps Excel users stop save errors when macros push data to a shared workbook with Tables/PivotTables on a mapped network drive.

Quick Facts

What does “network FTP” mean here?

The OP used “network FTP” to describe a mapped network drive with read/write access for several workstations. Excel files sit there, users edit locally, and macros try to save back to the shared location. That setup leads to save conflicts when more than one person touches the same file. [Elektroda, Darekstw, post #17005028]

Why do my Excel macro saves fail when someone has the main workbook open?

Your macro tries to write to the main workbook while another user has it open. Excel then shows a message and closes your file without overwriting the main workbook. This happens because the target file is locked during the other user's session. [Elektroda, Darekstw, post #16989873]

Can two users edit the same .xlsx at once on a shared drive?

No. Concurrent writers to one .xlsx on a mapped share are not supported. As one expert put it, “In a normal system this is impossible.” That means one writer at a time; others are effectively read-only or blocked until the save completes. [Elektroda, Prot, post #17054995]

Why can’t I share a workbook that has Tables or PivotTables?

Legacy Shared Workbook mode has serious limitations. It doesn’t work with features like Tables and PivotTables, so Excel displays an error when you try to enable sharing. That limitation is why your sharing attempt fails. [Elektroda, Prot, post #17070385]

Is there any workaround without removing Tables?

One path is switching collaboration mode: try the newer co-authoring/sharing options and set permissions on a central server. This doesn’t change the legacy limitation, but it changes how users connect and collaborate, which can avoid the conflict pattern. [Elektroda, Prot, post #17005575]

Should I move this to a database instead of Excel?

Yes. The thread consensus is to use a database for multi-user writes. Databases control concurrent access and avoid overwrite conflicts that occur with shared .xlsx files. In the words of one expert: “Use a database.” [Elektroda, JacekCz, post #16990392]

Which database was suggested as a starting point?

Access was suggested for moving the data out of Tables into a dedicated store, then connecting Excel for reporting if needed. That approach preserves your analysis while removing the multi-user write conflict from the workbook. [Elektroda, Andie, post #17070355]

Is Access the best long-term choice?

One expert cautioned that Access is still a file database and offers limited protection on shared drives. He added a reality check: “2/3 of the macros bravely solve… problems unknown in other systems.” Consider a server-backed database for scale and safety. [Elektroda, JacekCz, post #17070366]

How do I start migrating from Excel to a database?

  1. Move your input tables into a database table structure.
  2. Point macros or forms to write to the database, not the main .xlsx.
  3. Use Excel only for reading/analysis (PivotTables against the database). [Elektroda, JacekCz, post #16990392]

Can I keep PivotTables and still allow multiple users?

Yes, if PivotTables read from a database or a read-only data extract. Don’t co-edit the same Pivot-enabled workbook. The legacy Shared Workbook limitation with PivotTables blocks that scenario and causes the error you saw. [Elektroda, Prot, post #17070385]

What server or permission setup can reduce conflicts?

Host the files or database on a central server. Install the proper multi-user application stack there, and grant terminals permissions to files and actions. Then enable sharing or co-creation as appropriate for your version. [Elektroda, Prot, post #17005575]

What edge case should I watch for with macros?

If your macro opens and closes multiple files, a user viewing the main workbook can block the write. Your macro may close without updating the main workbook, leaving data unsaved centrally. Design for transactional writes to prevent loss. [Elektroda, Darekstw, post #16989873]

What was the final outcome in the thread?

The original poster concluded that Excel could not handle this scenario reliably and recommended using a relational database for such multi-user workflows. [Elektroda, Darekstw, post #17338238]

What is the difference between co-authoring and the old Shared Workbook?

In this thread, co-creation (co-authoring) is mentioned as a newer sharing approach set via privacy/sharing options. The legacy Shared Workbook mode, however, conflicts with features like Tables and PivotTables, causing your error. [Elektroda, Prot, post #17005575]
Generated by the language model.
ADVERTISEMENT