Im trying to open a specific excel sheet from my PPt-slide using "insert>>object".
So my Excel Workbook is calling " mape1", and in this Workbook here are many sheets, and I want to open a specific one called "sheet1".
I gave the following pfad in the "object"
As Example
C:\Users\me\Desktop\mappe1\sheet1.xls
But it doesn't work
what am I missing?
Thank you for your help
Check out this support article from Microsoft I've linked below. It says by using the insert method you will bring in "all data from the active, top spreadsheet in the linked Excel workbook."
I suggest copy and pasting the selection you want into PowerPoint as is described here:
https://support.office.com/en-us/article/Import-data-from-Excel-into-PowerPoint-3ec295e9-1bfd-47ff-8d7d-8b838caef853#__toc241650191
Related
In Excel I can read data from another cell in a closed spreadsheet that is on Sharepoint Online by using this formula.
='https://mycompany.sharepoint.com/sites/Site/Shared Documents/[Excel.xlsx]Sheet'!A1
It doesn't visibly open any workbooks files to get this information.
How do I get the data using VBA, say to set a string value. Every guidance I have seen involves Workbooks.open but I think it shouldn't be necessary to open the workbook?
I would like to copy the stuff from Visio to excel, if that possible.
I found some hint here:
Copying a visio page and pasting it in excel as an image
and tried to use in my code:
Sub Visio()
vsoPage.CreateSelection(visSelTypeAll).Copy
CIwb.Worksheets("Cables1").Paste
End Sub
but I am getting error 424 - object required.
Debugger points the following line:
vsoPage.CreateSelection(visSelTypeAll).Copy
How can I copy the current Visio worksheet to my current Excel sheet?
Take a deep look at the answer you refer in your question: Copying a visio page and pasting it in excel as an image
There's a note:
'Assuming your page object is named vsoPage 'This embeds the visio
drawing
So, you have to use a name of Visio page, which you want to copy.
Another requirement is to use proper Excel workbook and worksheet. So, do not use dummy-copy of code. Instead of it, try to understand what it does and change it to your needs.
Note: code presented in original question is placed in Excel! If you want to run it from Visio, you need to:
1) create an instance of MS Excel
2) open existing Excel workbook or create new one
3) copy Visio page
4) close Excel workbook
5) close an instance of MS Excel application
Good luck!
I have a Workbook D:\Sales.xlsx with a sheet named Orders. In this sheet there is a smart Table (Ctrl + T) named tblOrders.
In another Workbook E:\Reports.xlsx there is a sheet pvtOrders. When I create a pivot in this pvtOrders sheet and give D:\Sales.xlsx!tblOrders as datasource, it works fine while the source workbook Sales.xlsx is open in the same Excel instance. When the source is closed or opened in other Excel instance however refreshing of the pivot-Table is not working anymore. Excel prompts "Invalid reference" or similar (tested in Excel 2010, 2013).
The same problem is with a "normal" named range as source for the pivot table. However in this case there is no error prompt.
Is it a normal behavior? Is there a simple solution or at least a workaround without opening the source?
Thanks for any help
from my experience you need to have them open. have you considered merging both files? it might make things easier.
I searched in the net and found some similar cases, but they couldn't help me much.
I have an embeded Excel Worksheet in Powerpoint. I want to automatically save the Powerpoint Presentation as a PDF file, using a button.The name of the PDF file should include a number from a particular cell in the Excel Worksheet. I added a button (on the menu taskbar) with a macro, that automaticaly saves the Powerpoint as a PDF. Do you know, how can I refer to the cell in the Excel Worksheet in order to use it for the name of the PDF?
Many thanks for your help in advance!
this gets the first cell in first table in first slide
Debug.Print Application.ActivePresentation.Slides(1).Shapes(1).Table.Cell(1, 1).Shape.TextFrame.TextRange.Text
We are trying to generate MS Excel workbook using OOXML and populate data using SSIS.
We are able to generate Workbook and sheets, also able to create columns and insert data in the Header cell. We can also populate data using SSIS.
But the Sheet (DocumentFormat.OpenXml.Spreadsheet.Sheet) and all cells (DocumentFormat.OpenXml.Spreadsheet.Cell) becomes OpenXmlUnknownElement. So we are not able to read sheet / cell using following code: Sheet sheet = workbookPart.Workbook.Descendants<Sheet>().Where(s => s.Name == "Sheet1").SingleOrDefault<Sheet>();
We are able to read the same file if we first open it using MS Excel and save. Does anyone know how to resolve this?
You probably forgot to give your sheet a name. You can see this by using
Sheet sheet = workbookPart.Workbook.Descendants<Sheet>().FirstOrDefault
and you'll see that your sheet name is either undefined or garbage text.
If that does not help. Create a simple document in code save it in OOXML and open it in a xml viewer. then make a copy open it in Excel and save it and see the difference in xml. That is often a good start seeing what excel has added by default to the document.
Excel is very tolerant of things that you have done wrong when creating the document in code, and magically fix them when you open the document again.
A bad hack would be using interop to open the document saving it again in code. wich would fix everything for you.
Workbook wrkbk = app.Workbooks.Open(#"c:\del.xls");
wrkbk.Save();
wrkbk.Close();