I'm getting more and more Sheets in my workbook?
Does anybody know how I delete these additional sheets?
I'm running excel 365 and the file is located on a sharepoint.
Any help is appreciated.
Ok. I haven't had any luck regarding this issue. However, I found others dealing with the same issue. The solution I came up with might help, and is quite simple:
Save the document as a xlsx file. This deletes the phantom sheets. Then manually transfer forms and macros and save the document as an xlsm file. Not a pretty solution. But it works.
Related
I am getting an error when opening excel: We found a problem with some content in XXX. Do you want us to try and recover as much as we can? if you trust he source of this workbook, click Yes."
clicking Yes, "fixes" the issue but deletes a lot of VBA code, two weeks worth.
Whatever the issue it was introduced yesterday, I do not want to redo two weeks worth of coding. Is there anyway I can view what was removed, or open the VBA in notepad++ or something without opening the excel?
I opened another excel workbook and tried all the different options for the argument XlCorruptLoad in the Workbooks.Open to open the corrupt workbook. I noticed that there were two non existing sheets created in the project explroer of the corrupt workbook that had the code in there. I am not sure if it did that s a result of what I did or it was there all along and I did not notice it
Note that the reason I had a corrupted data is because the code was extracting a list and putting it in a cell validation formula..i guess I overloaded it.
I am trying to write an Excel add-in that would copy data between two workbooks.
What I would like to do is described here, but I would like to do that using the office-js.
Since office-js-based add-ins also work in the web browser, I would probably need to create a new Excel workbook from second (non-opened) workbook data and then copy the data over to the first workbook. I found the API call that allows me to open the workbook, but I am at a loss on how to use that workbook (get the data from it).
Any suggestions would be greatly appreciated.
Currently, Office Web Add-ins have no way of working with more than one open document at a time. It's an interesting idea. Please suggest this on Office Developer Suggestion Box. Or vote up one of the existing suggestions. A couple of possibilities:
Enable Excel to open a workbook in the same doc
Copy and paste ...
This is a common problem I've had for years and I'm sure many others have experienced. Every time I search, I don't seem to get exactly what I'm needing, so I figure I'd just ask to see if anyone has an answer or at least point me to the place with the right answer.
The scenario is commonly I'll have an excel workbook that has not been opened yet, typically an export from a BusinessObjects datamart, but not limited to just that source. Anyway, any time I've tried to import the workbook into Access, create a linked server in SQL server, or even use the workbook as an Excel Source in SSIS, the worksheet comes through with no data even though it has data. However, if I were to open the file manually in Excel, save it and close, all of the above show the data as expected. This is a very frustrating problem that I have yet to find a more automated solution to other than having some clunky script open the workbook in an excel instance, save it, then close it again.
Any help is appreciated. Thanks.
I'm trying to solve this problem that I have in my application.
I'm doing a add-in excel for excel, and I've never done it before.
What I need to to do is open an excel file in excel and then I need to use Globals.ThisAddIn.Application.ActiveWorkbook
to access the workbook and retrieve the data from 4 worksheets into a datatable.
No connections with constrings, I have to work directly with the open book.
I've been working on this and getting nowhere.
Any help or pointers would be appreciated.
I managed to solve it on my own, which is great.
When I open an excel file (generated through VBA code), I get an error
"Excel found unreadable content in <filename>. Do you want to recover the contents?"
Upon clicking yes, I get a message
'Repairs were made to PivotTable report 'pvtName' on '[filename.xls]Tab'.'
The pivot table in question is generated by the VBA code. Is there a way to figure out what repairs are being done on the pivot table, so that I can make the necessary changes in the code before the file is generated?
Thanks :)
This issue was resolved by making sure the file extension was .xlsm and the FileFormat 52 (Macro Enabled Workbook).
However, users with Excel 2003 won't be able to view the pivot table properly.
If someone has a better workaround, please let me know.