|
-
Aug 2nd, 2011, 11:28 PM
#1
Thread Starter
New Member
Any way to maintain slide source format when copying using Visual Basic?
I have written up a code that is able to (from Excel) locate and copy a specific slide and put it into a new presentation. The problem is that it does not copy the same format. I tried simply ending the code in PasteSpecial instead of just Paste, but that apparently does not work. I am not copying just one image or chart. I want to copy everything, including the source format. If I manually copy and paste, there is always a tool that pops a that I can click to make it keep the source formatting. But that doesn't pop up if I use code. If you have any ideas I gladly welcome them! (Or if you happen to know another method that would automatically apply this format, with or without applying it to all new presentations, that would be fine as well.)
Thanks!
-
Aug 3rd, 2011, 05:10 AM
#2
Re: Any way to maintain slide source format when copying using Visual Basic?
with pastespecial you have to provide the correct arguments for the desired result
lookup in the help for powerpoint (not excel) to find what arguments are available for its pastespecial method, or look here
http://office.microsoft.com/en-us/po...010117115.aspx
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|