What causes an excel file to open as read-only? [closed] - excel

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
An excel file exists on a network that can be accessed by several users.
However, after some investigation it was found that some users open the file as read-only.
I'm opening the file with VBA and workBook.Open(). This routine has a read-only property, but even explicitly sending this parameter as false, the file still opens as read only. When users who experienced this bug were asked to open the file straight from the network, the file opens as read only, despite being fine for other users. Additionally, permission rights to the folder has been ruled out as the cause.
Does macro security prevent a file from being opened normally? What else can cause a file to open as read-only?
More Details:
Windows 7
Excel 2007
.xls File Type

In Save As options/Tools/general Options ,there is a read-only recommended option, it can be.
[]'s

Related

Saving File without an extension [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
We have a system that creates files that are imported into Oracle. The files have the naming convention...
Filename.0000
Where the numbers are incremented with each export. So one file might be filename.4357 and the next file will be filename.4358.
I have managed to import the file into a spreadsheet as a comma delimited file where I then carry out some cleansing of the file.
I then want to save the file back to this unusual type .0000 but I can only seem to save it as Excel, CSV, TXT, PDF etc.
Does anyone have any ideas ? Thank you in advance.
Nothing yet
Save the file as a txt file and close it. Then rename it in Windows Explorer.
You can also do that with VBA. Use the NAME command to rename it to a file name with the desired extension.
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/name-statement

Whaetever file I try to open with excel it launches the same macro on a previous file that I did, IM LOST [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
How can I invert this problem, I didn't touch the code but I don't know maybe while saving the file. I can't open any files anymore because it keeps opening the same macro.
Thank you for your help
The macro is likely stored in your personal workbook. Personal workbooks open every time you open excel which would explain why it looks like this macro is "haunting you from the dead".
You can read about personal workbooks here.
https://support.office.com/en-us/article/copy-your-macros-to-a-personal-macro-workbook-aa439b90-f836-4381-97f0-6e4c3f5ee566

Use custom formats in new Excel files [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a set of custom formats that I would like to use in any new Excel files that I create.
I found this approach, Save cell styles to use in all new workbooks, but it relies on using a template which I cant use as I am using a cloud server so I don't have access to the XLSTART folder.
Using code is fine if I must, but I don't have experience in this space.
I understand that I may be able to create an Excel addin to hold the formats, and create a new workbook from that. Is this addin the way to go?
Please help!
Is this a desktop Excel program? If so, you might try adding another custom startup folder. (Depending on version it might be different, in 2013: Excel Options - Advanced - General - At startup, open all files in:.) Now if you put a file here, it will auto-open on Excel startup, just like the files in the XLSTART folder.
(But to be honest, I don't see how this will help you, since XLSTART - or any automatic startup folder - is useful if you want macros available. I'm not sure about templates.)

Can't open JPG file on Windows Server 2003 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a problem with open an JPG (or even TIF) file on Windows Server 2003.
No program want to open a picture.
I try to use Windows Preview, MS Paint and event Paint.NET.
Thad "bad" files are generated by OpenText OCR software.
When I copy that "bad" file to my machine, all works fine.
Then I resave image on my computer and put back to the Windows Server 2003 - all works!
All seems that such format is not supported by Windows Server 2003, but why?
Can anyone help?
Message form MSPaint:
Paint
C:\Temp\output.jpg
Paint cannot read this file.
This is not a valid bitmap file, or its format is not currently supported.
OK
Finally I found that there are some header added to JPEG file before JPEG content and terminator added after JPEG content. It can be seen through using Hex editor and comparing with regular JPEG file.
Solution is to keep content between two JPEG markers 0xFFD8 and 0xFFD9.
Useful source about JPEG format:
http://www.media.mit.edu/pia/Research/deepview/exif.html

Restore trash item to original location - Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm wondering if it is possible to restore a file that is in the trash (~/.Trash) to its original location.
I understand there is a restore command but I don't understand its arguments or how to correctly use it.
Is this a fairly simple thing to do?
Cheers
If your desktop environment followed the XDG Trash Can Specification when trashing the file, then restore-trash from trash-cli would do the trick.
What desktop do you use?
.Trash is just a (hidden) directory. All you need to do is move it out:
mv ~/.Trash/foo ~/
or using the file browser of your desktop environment, open the trash and drag it out.
As far as I know, in the trash folder (~/.local/share/Trash/), there is a folder with the files (files/) and a folder with the file information (info/). Each file has an associated .trashinfo file in which the original path and time of deletion are stored. You can use that to restore the file to its original location.

Resources