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 8 years ago.
Improve this question
I was wondering if it was possible to run code to create charts in excel that I will copy to a powerpoint presentation straight from powerpoint VBA? Or do I have to do it in excel?
You can do it directly from Powerpoint like this:
Embedding an Excel chart
If you have already created a chart in Excel, you can embed and link it to your PowerPoint presentation. When you embed an Excel chart in PowerPoint, any updates you make to the original Excel chart will automatically update in your presentation, as long as the files remain in the same location. This helps the data stay in sync, so you won't have incorrect or out-of-date information in your chart.
In PowerPoint, select the Insert tab.
Click the Object command in the Text group.
A dialog box will appear. Select Create from file, then click Browse
Locate and select the desired Excel file, then click Insert.
Check the box next to Link to file if you would like to link the data to the Excel chart. This will enable your chart to update itself when changes are made to the Excel chart.
Click OK. The chart will now appear in your presentation.
Related
I have a question about VBA. I am currently working as a job student in a company where I have to adapt powerpoints to the new desing. Now on each powerpoint there should be a random picture from a certain list. For this purpose, a certain photo place holder is provided in the slidemaster. They say the best way to fill this placeholder is to copy and paste the photo into the placeholder. But I have a powerpoint of 500 slides and I was wondering if there is not a faster way for this that will save me time. I have very little knowledge of VBA myself so. Have already tried some things like the below code snippit from stack overflow but this did not work to solve my problem.
insert image image place holder excel vba powerpoint
I can possibly put these folders in a folder with certain number and so with a random in VBA so select an image.
Anyone happen to have solution for this problem?
So what my client wants to accomplish seems pretty simple. We will have PPTX file template with a few Excel sheets embedded in it, and a few charts too.
We have created such template file. We are able to extract it, update excel files that sit in ppt/embedded directory with new ones, and pack it back.
The problem is, the display values of the tables or charts do not update automatically when such file is opened. You have to double click on a spreadsheet table or chart to trigger "edit mode". When you leave it the charts are updated.
We figured that internally, PowerPoint is doing screenshots of tables or charts, and uses it to display presentation. This is probably to allow presentation players that do not come with Excel to correctly render the presentation with embedded sheets.
Is there a way I can programatically update the screenshots of tables/charts? Is there some sort of API from Microsoft that would allow me to do that, like "MS Office API".
Maybe there is some way to have MS office configured/scripted, so I send it a file, it runs a VB script on it and returns updated value? I figured I can actually trigger update to screenshots with VB script. But I don't know if I can orchestrate Office program to do what I want.
Help? :)
I have a couple charts in a powerpoint presentation that I want to write a macro for to update them automatically. I have a database that will export data as excel spreadsheets and I was wondering if there was a way in either excel vba or powerpoint vba to have the user input the location of the new data file and have that new data copied and pasted so that the chart will update. I am new to VBA so any help would be greatly appreciated.
You can easily do this by editing link to the ppt charts to the new file.
Simply go to the
Excel Option Button>>Prepare>>Edit Links to Files and change source of the charts to the new file.
Let me know if you still want/need to use VBA for this.
Cheers
I'm working on a project that needs to be displayed via Powerpoint. I have a SQL chart that is refreshed every morning at 9 am and 12 pm with updated results. I need this information to display within a Powerpoint slideshow for our team, but I'm not sure how to do this where I can see the updated results. I tried inserting the excel spreadsheet as an object and linking that way, but that has not worked.
If the chart is in Excel and automatically refreshes, try it like so:
First, make sure that the PPT file and the XL file are in the same folder if possible.
Select the chart in Excel and rightclick/copy.
Switch to PowerPoint.
Use Paste Special and put a check next to Link to paste the chart into PPT.
I would paste it onto a slide that does NOT have a content placeholder; delete it or put some text into it if one's already there, then paste the chart.
PowerPoint should now update the chart each time you open the presentation, assuming the data/chart have changed in XL.
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 8 years ago.
Improve this question
How to create watermark text box in Crystal Reports vb.net 2012?
Have to create class for that? Please send me a sample of code or procedure on how to do that.. Thank you very much..
its just like the word "CONFIDENTIAL" in my sample image below:
Adding watermark is simply need to setting here is article.
While the above link is the most common and straight forward way of adding a watermark.
However its a bit of a pain if you want the watermark to be Diagonally across the page. Crystal wont let you do that unless you embed an image.
Also if you have lines and boxes (such as columns) on your report, the watermark will be overlapping those lines if you use the above solution.
The best solution I have used is using a Subreport:
On the Main report add the watermark to the section and select Underlay
following sections for that section.
On the subreport add your
tables and lines that would normally go on your Details sections.
Then put this Subreport on the Details section of the Main report.
Voila!! The lines and watermark will display exactly as you want and be under your control.
Hope it helps someone else.