Forum Discussion
scconn101
Aug 17, 2021Copper Contributor
Excel workbook automatically deleting or merging new sheets after saving?
I have an Excel workbook with one sheet full of a raw data output ("RAW"). Today, I tried adding another sheet for the formatted data ("Cleaned"). Everything seemed fine until I saved and closed the workbook; I saw that the file size went from like 150 KB to 7 KB. After opening it again, all of my raw data is gone, and all the content of the new sheet I made ("Cleaned"), minus formatting, is now in the "RAW" sheet.
I reverted to an earlier version and re-created the "Cleaned" data sheet, saving it and closing the workbook, and the same thing happened again. What's going on? Every edit I make, regardless of how small (i.e. putting a "1" into a new sheet, then saving and exiting) leads to the content of the new sheet replacing the old sheet under the old sheet's name. It'd be a real tragedy if I lost any data, so I'm a bit afraid to open my other workbooks. Any help would be really appreciated.
DavidAz81 I believe I had the same issue using the code found at https://stackoverflow.com/questions/43923102/hover-preview-over-excel-image-link . I had the same problem until a saw a comment when they explained the updated reference. The solution is simple. first use the hyperlink function in your language, but more than this, you need to correct the cell code. in the original post it was "=HYPERLINK(OnMouseOver("http://i.imgur.com/rQ5G8sZ.jpg"),"http://i.imgur.com/rQ5G8sZ.jpg")" but it should be changed to =HYPERLINK(OnMouseOver("http://i.imgur.com/rQ5G8sZ.jpg";A1); "http://i.imgur.com/rQ5G8sZ.jpg")
Any way, i did use it like this. On A column i have the list of hyperlinks (in text such as https://sitename.com/filename.jpg) (A2 is the first image), on B column I use this formula (on B2) I have =HYPERLINK(OnMouseOver(A2;B2);A2) on C column the =HYPERLINK(Reset()) .
in this sample I used the same image link on all cells (lazy me) but it works. . anyway, it is not the best solution yet. I am working on other easier way. this is a screenshot of the sample.
Hope it helps someone.. . the real advantage in this one is that you do not save all pictures in the excel file, as you say, if your list is large it would not be practical, but I think there must be a better way. i have included the sample file, but in case you don't want to download a unknown file, just follow the instructions.
2 Replies
Sort By
- Riny_van_EekelenPlatinum Contributor
scconn101 Are you by any chance saving the file as .csv or .txt? It should give you a warning that you trying to use a workbook with multiple sheets, though.
Saving a a regular Excel workbook (xlsx) should not remove sheets like you describe.
- scconn101Copper ContributorThat solved it, thank you so much! The raw data output file was a .csv and I didn't get the warning, for some reason. Really appreciate your help!!