transfering data excel locked
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Transfering data excel locked sheets (e.g. Table as Picture) fro

Transfering data excel locked sheets (e.g. Table as Picture) fro

resolvedResolved · Urgent Priority · Version 2007

replyReply Fri 23 Sep 2011, 16:03Delegate Saqib said...

Saqib has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course

Transfering data excel locked sheets (e.g. Table as Picture) fro

Transfering data excel locked sheets (e.g. Table as Picture) from Excel & Gant Charts as Pictures from Adobe Acrobat to Word at particular locations

For upcoming training course dates see: Pricing & availability

replyReply Wed 28 Sep 2011, 13:11Trainer Anthony said...

RE: Transfering data excel locked sheets (e.g. Table as Picture)

Hi Saqib, thanks for your query. The following subroutine copies the chart from the Area Report sheet of our Excel spreadsheet to the Word document c:\mydocument.doc which has a bookmark "MyBookmark" somewhere within it. If you have problems identifying the chart on your workbook just record a macro selecting your chart and copying it and amend the lines below. Note, programmatically very difficult to do this from Adobe PDFs. Best to cut and paste those.

Here's the code:

***********************

Sub PositionSpecific()

Dim appWord As Word.Application

Set appWord = New Word.Application

Sheets("Area Report").ChartObjects("Chart 3").Activate
Sheets("Area Report").ChartObjects("Chart 3").Copy

appWord.Documents.Open Filename:="c:\mydocument.doc"
appWord.Selection.GoTo What:=wdGoToBookmark, Name:="MyBookmark"
appWord.Selection.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile

appWord.Visible = True

End Sub

***********************

Hope this helps,

Anthony

Tue 4 Oct 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
advanced+excel+training+in+london and other Microsoft training courses.

Excel tip:

Paste functions box quickly

If you want to do a formula using the paste functions box press SHIFT + F3.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard