Resize excel table that is embedded in Powerpoint via VBScript

Hi,
I encounter the following problem:
I have a powerpoint that has some excel tables in some slides.
When I activate an Excel table in Powerpoint 2007 and 2010, the size of the excel object is roughly the same as the size of the image that corresponds to that table. When I activate the table in Powerpoint 2013 the size of the object is much shorter than
the image.
So, when I deactivate the table the image that is generated is much smaller. Even if I keep the original size and set it again after the deactivation the image becomes "stretched".
I would like to create a VBSCript that will:
1) activate excel tables
2) give them the size of the image element that corresponds to them
3) Deactivate them so that the image is redrawn
The part of the VBScript that does the activation/deactivation is the following:
For Each slide in presentation.Slides
   For Each shape In slide.Shapes
      if shape.Type = 7 Then
         if shape.OLEFormat.ProgID = "Excel.Sheet.12" Then
             slide.select
             shape.OLEFormat.Activate
             ' Here I would like to change the size of the excel object (not of the corresponding image)
             presentation.ActiveWindow.Selection.Unselect
    End If
End If
As I mentioned earlier, if I change the size of the shape after the deactivation the image gets stretched, so somehow I should change the size of the object after the activation.
Is this possible or is there anything else I could do?

Hi Stkarp,
Thanks for posting in MSDN forum.
Based on the description, you want to resize the Excel table in PowerPoint. After some time researching, I am not able to find a way to ahcieve the goal.
I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.
Sorry for any inconvenience and have a nice day!
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How To display a table that resides in the database via JFrame.

    Hi,
    I need to display the contents that present in the table that resides in my database.
    Scenario:
    Im having Main frame window, in that im having a button, while clicking that button a new JFrame should be opened & it should display all the rows & cols of dat table that resides in my DB.
    I have no prob in opening a new JFrame during a button click, but i dont knw how to display table in the table format.
    I tried JTable but i dont know how to pass the data into the JTable.
    Kindly help me out!!!

    JTable relies on a TableModel to deliver data. You have several ways of providing this data:
    - Read it into either a Vector of Vectors (list of rows containing list of columns) or an Object[][] and create the JTable while passing the data.
    - Create a javax.swing.table.DefaultTableModel, pass it to the JTable as a model, configure it and call addRow() in order to add rows.
    - Create a custom table model class; see javax.swing.table.AbstractTableModel for a convenient base class

  • I am missing text in an excel table that is imported via 'place', can't figure out why?

    When

    Go to Settings/Cellular and you can see how much data each app is using. You can Reset Statistics, then track all of the apps data usage.

  • Cannot search file content on Word document with embedded Excel table

    Cannot search file content on Word document with embedded Excel table. I have Windows 8.1 64-bit and Office 2010 Professional. Only phrases from within Excel tables are not searchable. I have many Word documents with embedded Excel table.
    I use it for my invoices. Those invoices are converted to pdf to be sent via mail. Searching the same phrases in related pdf files Works fine. And yes, folders are indexed, searching service is active......... For example I can find all invoices that have
    specific address or name, which is located in word document, but cannot find invoices with specific item name or price, being that information is in embedded Excel table. (not linked, embedded). I thought that is a question for Windows forum, but guys directed
    me here on Office forum. To clarify, I do not use Ctrl+F inside some document, but Windows Search in my folders. Probably the same happens in Office 2013.
    Thank you.

    Hi, I have a lot of Word documents (invoices, offers). Main part of those documents is embedded Excel file because it is easier to do mathematics in Excel than in Word. There are columns with description, unit price, quantity, taxes... Now, I need
    to find who bought HP switch 2530-24G last year. I open folder with last year invoices and search "2530". Cannot find any. But if that document was converted to pdf for mail, than I can find that phrase. Windows search does not work for content if the content
    is in embedded file.

  • Word 2010 with Embedded Excel table becomes oversized for RDP users

    I originally asked this question on the SharePoint Online forums as this was the first time we've seen this issue. Original Post
    Summarized: we have a Word template with embedded Excel table created in SharePoint Online, and when a RDP user opens it, the document correctly opens in the local version of Word 2010 (not Word Online).   When the table is edited, it becomes
    larger to the point you can no longer view the entire table. 
    We have done some testing with Word 2010 outside of RDP and everything works correctly, the embedded Excel table doesn't become oversized and works as expected.  It seems to definitely be an issue with RDP and I've been looking for any assistance
    on resolving this issue.  I recently did some further testing and found that the only time the table becomes oversized and not view-able is when you copy and paste information from an existing 2003 Excel document.  I would think this is the issue,
    but it doesn't happen when working with Word and SharePoint outside of an RDP environment. 
    The template is a .docx file. All RDP users are in a 2008 R2 environment.

    I did some testing over the weekend and the simple answer to your question - Not always.
    I found 2 variables which seem to cause this to happen:
    1) We have 2 TS servers - one with IE 9, which remains to maintain support for a legacy app which will not work with IE 10 or 11, and one with IE 10.
    2) Screen resolution of the client computer - it seemed that systems with video configurations which could not exceed the maximum of 1280x1024 (the same screen resolution as our TS servers) didn't experience the issue.  There were some laptops
    and higher end systems with widescreen monitors, where this was an issue.  They typically didn't have a 1280x1024 option; yet even if they did they would experience the same issue, just not as pronounced.
    It also seems to only occur when a user copies and pastes information from Excel 2010 into the embedded Excel table in Word 2010.  Again, only within RDP.  On those client computers which had the problem, I could perform the same function outside
    of RDP without any problems.  However, this is not an ideal format for the chefs as they will frequently be moving between different systems during the day.

  • Embedded Excel table in Word 2013

    I just purchased a new laptop with Window 8 and Office 2013. Previous Word files with embedded Excel tables will open once then refuse to open a second time. I get an error message, "the program used to create this object is Excel. That program
    us either not installed or your computer..." Both Excel and Word work fine on their own. One thread suggested turning off Add-Ins but I'm not sure how to do that... And it did not seem to work for the other person... HELP!

    Hi,
    In regarding of the issue, I recommend we do some tests to narrow down the issue.
    Create a new Word 2013 file and a Excel 2013 file, and insert the Excel file as object in Word to test.
    If it works fine, we need to repair the previous Word files.
    If it does not work fine, please try to start Word 2013 in
    safe mode (Press Win+R > enter Winword.exe /safe). If it works fine, we'd better check the add-ins both of the Word and Excel:
    In Excel/Word go to file>options>add-ins. Then down the bottom select COM Add-ins from the drop down menu and hit go. Uncheck everything hit ok. Close the options menu close Excel.
    After, we also could update all the latest Office 2013 and Windows 8 patches to test.
    Regards,
    George Zhao
    TechNet Community Support

  • When opening a word doc in pages i am loosing the graphic images from powerpoint that were embedded in the word doc

    When opening a word doc in pages i am loosing the graphic images from powerpoint that were embedded in the word doc

    Are the images placed in a table? Many Word user have the habit of doing that. Tables are not handles the same way in Word and Pages so they get "hidden" in Pages. One way to find this out is to change the size of the paper of the document. You do that in the Page setup in the file menu. Create a document that is much longer that the default one and see if you images will pp up.

  • How to check from code in Excel Addin that Excel is embedded in Microsoft word

    We've developed an Excel Addin in C# for Excel 2010 and it works perfectly OK. But one issue is reported very recently as below.
    1. Microsoft word document is created with an embedded excel work sheet.
    2. Save the document and close.
    3. Open the word document and try to edit the work sheet there.
    4. Following error comes.
    "The program used to create this object is Excel. That program is either not installed on your computer or it is not responding.
    To edit this object, install Excel or ensure that any dialog boxes in Excel are closed."
    5. This is because, our Addin is initialized and one excel process is running.
    6. If the Excel Addin is disabled, above work flow works correctly.
    Please let me know how to determine from the Excel Addin that the excel worksheet is embedded in another applicatoin. Because I want to disable the Addin in those cases and enable it if the Excel is opened standalone. The Addin is developed in C#.

    Hi,
    Since the error message, please try to install this Hotfix test if it works:
    http://support.microsoft.com/kb/2596494
    Note: Delete the Excel instance running in the background(Go to your task manager and delete it) before opening your Word document and edit your embedded Excel.
    If the issue still exists, please see the article and try the solution which I copied here:
    "The basic simple answer is to place a Marshal.ComReleaseObject(Wb) at the end (or better, in the Finally block) of your event handlers. This will properly allow Word and excel to handle the OLE communication by not having VSTO hang on to an instance
    handle of the workbook, therefore causing the error.
    And this is not carte blanche to start placing ComReleaseObject() all over your code. I have found VERY VERY few limited cases where using ComReleaseObject() in an add-in necessary. And this is one of them."
    http://davecra.com/2012/10/09/vsto-and-comole/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • How do I import a PowerPoint presentation that has embedded audio and animation?

    I have a presentation that was created in PowerPoint and each POwerPoint slide has a embedded m4a audio file.  Is there a way to import the audio with the slides or playback the PPT with the audio and do it as a screen capture where the audio is recorded straight across with out having to go out through the speakers and in through the microphone?

    Hi there
    You should be able to play the PPT and record it from Captivate as a Video Demo. When you record, you should also see an option for recording System Audio.
    Cheers... Rick

  • How can I use PowerPivot tables like Excel tables -- printing, etc.?

    I can't seem to find any information on this anywhere, and even more surprisingly, no one else seems to have even asked this question...
    How can I use tables I create in the Excel PowerPivot window in the same ways I use tables that are in ordinary Excel worksheets, to accomplish tasks such as printing? I am able to use the powerful capabilities of PowerPivot to produce tables with precisely
    the information I need for reports -- connecting data from multiple tables/sources, filtering, etc. -- but then there doesn't seem to be any way to actually print what I'm seeing, nor can I seem to access cells in these PowerPivot tables from Excel worksheets.
    If a PowerPivot table is conceptually an Excel table with additional power in terms of pulling in data and relating it, it would seem appropriate that all the power of Excel could be brought to bear on these PowerPivot tables, but on the contrary, the available
    operations are limited. if, instead, a PowerPivot table is more correctly viewed as a data source that Excel worksheets can connect to, that would be fine, and indeed, one
    can use a PowerPivot table as a data source -- except it can't be brought into an Excel worksheet as an ordinary Excel table, unlike most other data sources.
    I hope I'm missing something really obvious, and that someone can point out what it is. Thanks.

    Kirchh,
    When PowerPivot was first designed, the decision was to integrate closely to Sharepoint to allow for team sharing. We are constantly evaluating customer feedback to add more features, and this has been one of the feedbacks we have received. We will consider
    supporting this in the future but with no gurantee.
    Chu
    -- This posting is provided "AS IS" with no warranties, and confers no rights
    I'm not questioning why PowerPivot is closely integrated with SharePoint. I'm asking why connecting to the PowerPivot model from within Excel was intentionally blocked by Microsoft, when all the functionality to do so appears to be present.
    Is creating an OLE DB connection in Excel to PowerPivot as $Embedded$ supported?
    No support. It was originally designed for SharePoint. This changed with Power Pivot for Excel 2013 (it's packaged with it). Originally the scope (in 2010 through 2012) was that it was for SharePoint users. So it became more obvious through that to market it
    toward all Excel users. Thus the recent changes. 
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to attach image, screen shot or excel table to master vendor copy.

    Hi,
    Please let me know how to attach an image or excel table into "header text" table. This has to be printed and sent to the customer. We use SAP GUI to create purchase orders.
    Thanks in advance.
    Kushal

    Past the code into the post and then click on the post preview tab to check to see if the image rendered...it should show, if not, then either the code wasn't copied properly or the wrong embedding code was used.
    That will provide a link to the image in separate browser window or tab. But if you place a "!" (an exclamation mark) at either end of the link (with no spaces or quotation marks), the image will then be displayed inline, within your post.

  • Delete excel table column

    I have an excel templpate that contains a table that is already formatted with lots of formulas and colroed celss, etc.  Depending on the query that I run with labview, I produce a data result that is exported to excel and then I want to resize teh excel table to fit the data.  I want to resize a table with activex commands in labview.  How do I do this?
    Solved!
    Go to Solution.

    Please see attached excel worksheet to see the table that I am asking about.  It has a simple table but explains what I need to do in comments below it....
    Attachments:
    Excel Table.xlsx ‏11 KB

  • Cannot paste small Excel table into pdf

    I have been pasting a small Excel table (seven rows x five columns) onto pdfs in both Acrobat 9 and X Pro.  Today, the paste won't execute.  It's actually a small graphic in Excel with text boxes that allow revision.  It's always worked until today.  Some 2013 upgrade occurred at the office today.  No one here has a clue re why the paste won't execute.  I've tried copying the same graphic from PowerPoint into the pdf; no dice. 
    I've never set up the graphic as a stamp; it's a trial exhibit label that has to be a certain color and have revisable text fields.
    I've checked the security of the pdfs I've created today; those settings are wide open and no different from the security settings for the pdfs in which the paste would execute.
    Open to all suggestions.
    Thanks.

    [discussion moved to PDF Forms forum]

  • ActiveX container of excel table

    Hi
    I have a excel table with lots of font formats that I'd like to have visible in LabView. How can I do that? I tried to copy the ActiveX...Range but it didn't work.
    I don't want to build the table in LV because of the font formats.
    It's very odd especially because could copy graph picture to the clipboard.
    Thanks for any help.
    Yves

    Hi Yves,
    display your Excel table in an InternetExplorer component embedded in an ActiveX container…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Excel Table with Data Connection Manual Text Entry Misaligned After Refresh

    Greetings!
    I have an Excel 2010 workbook that includes a table linked to my SharePoint 2013 site by a data connection. The SharePoint list feeds the table standard information that's managed on the SharePoint site, but I need the user of the Excel workbook to be able
    to enter text manually in the workbook to associate local information with the line-items coming from the SharePoint list. To do this, I've added extra columns to the end of the table.
    The user can enter information in the appropriate cells in the "extra" columns at the end of the table, but when I refresh the data connection, the addition of a new list item on the SharePoint side results in the user's manually entered text getting
    out of alignment with the row it's supposed to be associated with.
    Example
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    Item 2
    Text entered for Item 2
    Row 3
    Item 3
    Then, if I add a new item to the list in SharePoint, for example, something that would appear between the original items 1 & 2, after refreshing the table, I get the following:
    Column 1(SP)
    Column 2(Extra)
    Row 1
    Item 1
    Row 2
    New Item 1.5
    Text entered for Item 2
    Row 3
    Item 2
    Row 4
    Item 3
    The table's data connection is set to insert rows for new items, and I could swear I had this working properly once upon a time...but I can't seem to make it work now.
    Any thoughts on what would cause this?
    Thanks in advance!

    Yes, it is. I realized after posting the first time, that I'd assigned the question to the Visio forum. I wasn't sure how to reassign to the correct (Excel) forum, so I re-posted over there:
    http://social.msdn.microsoft.com/Forums/en-US/b3bbe00c-94c0-48d4-bed9-fbd08d707b1d/excel-table-with-sharepoint-data-connection-manual-text-entry-misaligned-after-refresh?forum=exceldev

Maybe you are looking for

  • Issue with creating a proxy assembly for WCF services

    Hi I am in the process of creating a proxy assembly for WCF services (Project Server 2010) and followed instructions as per below URL http://msdn.microsoft.com/en-us/library/ff621594.aspx#pj14_CreateProxyAssembly_UsingWebConfig Getting an error when

  • Encore isn't Transcoding for me on my PC

         I am new to using Encore and have been making my DVD's with Windows DVD Maker, then not long ago I started using Encore. The problem I may having with enocore is that when i place my project in encore and make my menu and everything then go to B

  • Module pool programming query

    Dear friends, I have a problem in handling tabstrips in module pool programming. the problem is when i go to next screen it gets initiated to the tab number which i have declared in the data part. but the data in the screen remains intact. after pres

  • Won't burn CD

    I make a playlist but when I click the burn button at the bottom of the screen, the message "Disc Recording Not Found" flashes at the top of the page. Am I missing some component?

  • Web services Context

    Hi, I need to use a shared context to hold the application session across various web service invocations. I found WS-CTX (http://docs.oasis-open.org/ws-caf/ws-context/v1.0/wsctx.html) supports that. But I am not sure of how to implement it. Can anyo