I want paste specific ranges in an Excel spreadsheet to a powerpoint slide at a specific location on the slide. I have sucessfully pasted to a slide but I cannot figure out how to position the pasted item where I want it.
I want paste specific ranges in an Excel spreadsheet to a powerpoint slide at a specific location on the slide. I have sucessfully pasted to a slide but I cannot figure out how to position the pasted item where I want it.
1.VBA Clipboard Cut & Paste from Excel to Outlook
An unusual one this one but please read on. If I manually copy a range of cells from an Excel worksheet and then paste into a Draft email in Outlook (My Outlook 2003 uses HTML as draft format with Word as editor) the resulting pasted cells look fine - colors and formatting are maintained. OK now to do it in VBA from Excel. I copy the range of cells into Clipboard with :- Range(Cells(aa, 4), Cells(bb, 17)).Select Selection.Copy I then obtain the contents of Clipboard and place into a String variable with :- Set MyData = New DataObject MyData.GetFromClipboard strClip = MyData.GetText I then create an Outloook object within VBA and build a Draft message using strClip as part of the Message body. This all works OK and the Draft message is created but the resulting pasted range of cells in the Draft message does not look very good, the values are mis-aligned and wrapped around with any color formatting is lost. It does not give me the same pretty result as manually cutting and pasting the cells. Does anyone know how I can preserve the formatting using the VBA method so that the resulting pasted cells looks as good as the manual method? Thanks.
2.Excel - give users option to keep info in clipboard after pasting
3.Clipboard - "No" to Paste Info Later
Hi, I have a macro which opens a lot of documents (approx 90) as text files, extracts some data and copies this into excel for manipulation. The problem I have is that when the macro is closing each text file a large amount of data has already been copied to the clipboard.I get the following message: "There is a large amount of information on the Clipboard. Do you want to be able to paste this information to another program later?" User intervention is required which I want to avoid.I always want to select "No" to this option, but at the moment I have to do it 90+ times. Is there some code I can insert to my macro to automatically select "No" each time? Help gratefully received. Graham
4.through vba code, copy full screen ppt slideshow image and paste into MS Word
I am trying to view a slide full screen and then print screen or capture the screen then change to Word then paste the image into Word return to ppt and repeat for the all slides The code below gets started but the screenshot includes the vba editor window and the paste part is not working. I can't use any utilites like snagit on these PCs. ========================================== Option Explicit Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal _ bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Const VK_SNAPSHOT = &H2C Sub PrintScreen() ActivePresentation.SlideShowSettings.Run keybd_event VK_SNAPSHOT, 1, 0, 0 ReturnValue = Shell("winword.EXE", 1) ' Run MS Word SendKeys "^(V)" End Sub
5.through vba code, copy full screen ppt slideshow image and paste into MS Word
6. VBA paste clipboard picture
Users browsing this forum: No registered users and 79 guest