Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to automate the process of copying an image from Excel to
the clipboard, and pasting it into an OLE Object field in an Access table. I want to do something like: Dim MySheet As Worksheet Set MySheet = appX.Workbooks(Filename).Worksheets("Requirements" ) Dim pic As Shape rsExcelImport.MoveFirst For Each pic In MySheet.Shapes pic.Copy 'Somehow paste to MS Access rsExcelImport.MoveNext Next pic Any advice on how I can accomplish this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
i'm working on Sub PowerPointOLEAutomation() Dim objPPT As Object Dim Pres As PowerPoint.Presentation Dim i As Integer Dim Dave As String filepath = Sheets("progdata").Cells(133, 2).Value 'creates the PowerPoint Object Set objPPT = CreateObject("powerpoint.application") objPPT.Visible = True 'Makes PowerPoint visible 'Adds a blank presentation Set Pres = objPPT.Presentations.Open( _ FileName:=filepath, ReadOnly:=msoFalse) 'adds a blank slide and paste the chart i = 0 x = 2 Slide = "Slide2" picturename = "Picture 1" For i = 0 To 24 Set Slide = Pres.Slides.Add(x, ppLayoutBlank) Dave = i Call UpdateChart(Dave) objPPT.ActivePresentation.Slides(x).Shapes.Paste ' objPPT.ActivePresentation.Selection.SlideRange.Sha pes(picturename).Select ' With ActiveWindow.Selection.ShapeRange ' .Left = -5.12 ' .Top = 10.25 ' End With picturename = "Picture " & i + 1 Slide = "Slide" & x x = x + 1 Next to move Pictures to power point, it's not what your after, but shows how to work with another app. Might be some help? Good LUck Ross |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I customise quick access toolbar button images in Excel 200 | Excel Discussion (Misc queries) | |||
Copying Data from Access to Excel in a macro | Excel Worksheet Functions | |||
Copying figures from Access to Excel | Excel Worksheet Functions | |||
how i convert excel files with images to access | Excel Discussion (Misc queries) | |||
how i convert excel files with images to access | Excel Discussion (Misc queries) |