The {file} may have been changed by another user since you last saved it. In that case what do you want to do? - excel

This is regarding editing a shared Excel file on a Windows 10 computer.
Context:
The excel file is sitting in a Microsoft Teams site (ie. SharePoint) and being opened in the desktop version of Excel.
To clarify, the Teams file location is mounted onto the Windows File explorer via the sync button on Teams:
I keep getting this error:
But I've not found how to avoid it.
Any ideas? I am not looking to make a copy of the file because that breaks the links I've shared to the active file. But also I don't know what changes I'd be overwriting if I choose "Overwrite changes"

Related

Links in excel stop working when file is saved

I was emailed an excel file with a number of links to install direct printer queues. If I open the excel attachment directly from the email the links work, but if I save the attachment to my desktop the links no longer work and I get an error “Cannot open the specified file”.
If I copy the link into Windows explorer, it works fine. Is there a way to ensure the links still work from excel when the file is saved in a shared location so anyone with access to the file can click on the links without having to copy the link into Windows explorer?

Server File Updated A newer version is available (OneDrive)

I have a spreadsheet shared on OneDrive that I maintain, which contains VBA code so it must be opened in the Desktop version. Whenever I open it directly (not through OneDrive) after updates have been made, I get the "Server File Updated A newer version is available" message.
Many of the users of this spreadsheet have it open for days on end, and therefore do not see the updates until they close and re-open it.
I am wondering if it is possible to implement some code that periodically checks OneDrive whether a newer version is available and trigger the "Server File Updated A newer version is available" pop-up, or at least force a close and reload of the spreadsheet.
This would be a great help for many reasons. Excel certainly does it well enough when I open the file, but I cannot find any way of re-triggering this check.
I hope that makes sense and a simple solution is available.
Darren :)
Solution
Open the windows application Office Upload Center (you can type this in the Windows 10 search to locate it.
Select Settings
Check mark Delete files from the Office Document Cache when they are closed.
This will stop this error happening in the future.
Click Delete cached files to correct the error for the current instance.
1) Search "Upload Center" in Windows 7
2) Upload Center => Settings => Check the box "Deleted files from office document cache when they are closed" and click "Delete Cached files

Uploaded excel workbook to SharePoint auto updates when changes made to the original

I have uploaded an excel workbook we constantly update to SharePoint for coworkers to view remotely as it has information they need. Would I have to delete and replace the workbook every time we make a change or is there a way that the workbook in SharePoint can automatically update with changes we make to the original which is on a Y drive? Thank you for any assistance.
When using SharePoint I find that there's an option to view the files in a document library using Windows Explorer. When you do that you can get the path out of the address bar and use that to update the file instead of the 'Y' drive. Benefit being you could also turn on version history in SharePoint then whenever anyone uploads a new version you can go to the past versions through SharePoint.
If your users don't all have access to SharePoint you could drag and drop from the Y drive to the address from the 'View in Windows Explorer' link or even automate it by writing a DOS batch job using the COPY command to copy the file over. Then you can use windows task scheduler to run the .BAT file however often you want.
Hope that helps!

Don´t open .cube file in excel

I have the following problem:
I have a process in SSIS and it generates .cube files and saves the files in Sharepoint folders.
I have users that open the files in excel. Some can see the data in the files and other can not see anything.
There is one user who opens the file on a computer on the company network and can not see the data in the .cube ​​file, but if the same user opens the same file on a personal computer the user can see the data in the file.
Can someone help me?
There are a couple of possibilities here. First off, Excel has something called Trusted Locations. If a file is on a network share, you may need to add that share as a Trusted Location. Check the Excel backstage (or look for a video on Youtube about Trusted Locations) for more info.
Secondly, once the file is downloaded, do the properties of the file show the 'Unblock' button? They shouldn't for a typical intranet setup but there could be something unusual about your particular environment.

how do I mark a file as a data file in a visual studio 2010 vsto clickonce application?

I'm making a Word 2007 add-in with C# 4.0 in Visual Studio 2010. I need an Access 2007 database (a .accdb file) to be placed in the data directory by the clickonce installer. Unfortunately, the file is getting put elsewhere, so the application can't find it at runtime. I've seen various articles refer to using the Application Files dialog on the Publish tab of the project properties to mark the file as a data file, but I have no Application Files button for some reason.
Any idea how to make the Application Files dialog appear, or some other way to manually mark my .accdb file as a data file?
In the Solution Explorer, if you set the file's property to be Copy to Output Directory = Copy Always. Then when you go to Application Files they should default as a Data File.
However, since this is your database I would consider looking at make it safe across updates so you might consider this post.
See http://msdn.microsoft.com/en-us/library/dd465298.aspx
By the way, "Application Files" button should be on the project properties' Publish tab.
VSTO Applications do not have the Application Files button available, and you can't set the file types specifically. If your file is not being deployed to the data directory and you want it to be, rename it with a file extension that is marked by ClickOnce as data. This includes .xml, .mdb, and .mdf. Otherwise, the file is deployed with the VSTO application and will be in the same location as the rest of the files.
The location of the deployment files for a VSTO application can be discovered programmatically this way:
System.Reflection.Assembly.GetExecutingAssembly.CodeBase
You might want to move the database, though, because unless you deploy it as data, it will be lost when an update is performed. Or you can check out this article about where to put your data to keep it safe from ClickOnce updates.
I was able to get things to work by using the Mage tool as described here:
http://msdn.microsoft.com/en-us/library/6fehc36e.aspx
The trick with MageUI is it's open file dialog assumes you want to open a manifest associated with a .exe; a vsto project has a .dll, so the manifest doesn't appear in the files list by default, which was really tripping me up.
Basically, this process is a pain because you have to remember to do it manually. I don't know if there's a way to make this part of the build (maybe a post-build step? But this is really a post-publish step).

Resources