Picture Copied as BitMap Ends Up As Metafile - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

OZGRID Excel Help & Excel Best Practices Forums

Information Helpful? Why Not Donate.

SPECIALS PAGE FOR BARGAINS | BUILD YOUR GOLF SWING | FREE CUSTOM FUNCTIONS ADD-IN


Download Active Data For Excel Demo


Go Back Excel Help & Excel Macro Help > HELP FORUMS > Excel and/or Powerpoint Help
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

Picture Copied as BitMap Ends Up As Metafile



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old July 17th, 2007
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
dansch dansch is offline
I agreed to these rules
 
I'm a Spammer:
MS Office Version: 2003
Op System: Windows XP
Assumed Experience:
Join Date: 21st December 2005
English is 1st Language:
Posts: 15 -- Threads: 6
Picture Copied as BitMap Ends Up As Metafile

It appears that the VBA argument "xlBitmap" in Excel 2007 doesn't function as it should

If I manually copy an embedded chart (or a range that includes data cells and an embedded chart) using Copy as Picture and select "As Shown on Screen" and "As Bitmap," the item copied to the clipboard is, indeed, a bitmap. If i perform the exact same action in VBA using
VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
,
then the item copied to the clipboard in NOT a bitmap, but a metafile.

I have macros that copy numerous charts and ranges as pictures and pastes them in powerpoint as pictures, but in XL07, the are always being copied as metafiles and ppt errors out if I use the
VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
PPSlides.Shapes.PasteSpecial(ppPastebitmap)
vba function.

I would use the metafile format, but in Office 2007, they are a mess. I was hoping to copy and paste as bitmaps, but it's not working.

Anyone else observed this bit of strangeness? Or is it just me?
Print [Post / Thread] Reply With Quote
Old July 17th, 2007
Andy Pope's Avatar
Andy Pope Andy Pope is offline
OzMVP (Roobarb)
 
I'm a Spammer:
MS Office Version: 2000/2003/2007
Op System: Vista Business
Assumed Experience: Ever growing
Join Date: 7th March 2003
English is 1st Language: Yes
Location: Essex, England
Posts: 11,319 -- Threads: 32
Re: Picture Copied as BitMap Ends Up As Metafile

For me in 2007 this code copies the chart as a bitmap and pastes into powerpoint as expected.

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Sub x() ' include reference to Powerpoint library 12 Dim objPPT As PowerPoint.Application Dim objPPTPres As PowerPoint.Presentation Dim objPPTSld As PowerPoint.Slide Set objPPT = CreateObject("Powerpoint.application") objPPT.Visible = True Set objPPTPres = objPPT.presentations.Add Set objPPTSld = objPPTPres.Slides.Add(Index:=1, Layout:=ppLayoutText) ActiveSheet.Shapes(1).CopyPicture Appearance:=xlScreen, Format:=xlBitmap objPPTSld.Shapes.PasteSpecial ppPasteBitmap End Sub
__________________

Cheers
Andy

Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS Activate A Shape Before Selecting It || Powerpoint Chart Formatting NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 00:32.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads