![]() |
Copying images from Excel to Access
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? |
Copying images from Excel to Access
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 |
Copying images from Excel to Access
|
Copying images from Excel to Access
|
Copying images from Excel to Access
|
All times are GMT +1. The time now is 11:47 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com