Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
LB79
 
Posts: n/a
Default Pasting Format and values


Hello - I have a macro that creates a report (with formatting and logo),
copies the report page to a new workbook, and saves it. It works well
except that i can only copy either the formatting (inc logo/grid lines
etc) and have my data show as #value, or the data (numbers and text
only). Is there a way i can easily copy the whole report so that the
formatting AND values show?

Thanks


--
LB79
------------------------------------------------------------------------
LB79's Profile: http://www.excelforum.com/member.php...o&userid=12156
View this thread: http://www.excelforum.com/showthread...hreadid=397202

  #2   Report Post  
Excel_Geek
 
Posts: n/a
Default


Can you try first pasting values then pasting formats?

e.g.

Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Selection.PasteSpecial Paste:=xlPasteFormats


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=397202

  #3   Report Post  
Excel_Geek
 
Posts: n/a
Default


Can you try first pasting values then pasting formats?

e.g.

Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Selection.PasteSpecial Paste:=xlPasteFormats


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=397202

  #4   Report Post  
Excel_Geek
 
Posts: n/a
Default


Can you try first pasting values then pasting formats?

e.g.

Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues
Selection.PasteSpecial Paste:=xlPasteFormats


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=397202

  #5   Report Post  
LB79
 
Posts: n/a
Default


Ive tried this but it doesnt paste everything... logos (jpg) are missing
etc.

Anything else i can do?

Thanks


--
LB79
------------------------------------------------------------------------
LB79's Profile: http://www.excelforum.com/member.php...o&userid=12156
View this thread: http://www.excelforum.com/showthread...hreadid=397202



  #6   Report Post  
Excel_Geek
 
Posts: n/a
Default


Are there more than one images you want to copy and paste? Try
something like this:

ActiveSheet.Shapes("Picture 1").Select
Selection.Copy
Sheets("(whatever the sheet is named)").Select
Range("(whatever cell it goes in...)").Select
ActiveSheet.Paste

"Picture 1" is by default what Excel/VBA will name the image. You can
find out if your logo is named something else by simply recording a
macro where you copy and paste the logo.


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=397202

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I convert date values to non-date format e.g. 01-06-78? mikelenno Excel Discussion (Misc queries) 2 July 8th 05 08:51 PM
Can Excel represent formula in textural format with values substi. BoneR Excel Worksheet Functions 7 March 31st 05 03:11 PM
MS Excel should allow you to format numerical values to thousand. Elias Nunez Excel Worksheet Functions 1 December 2nd 04 04:06 PM
format negative values in parenthesis David Excel Worksheet Functions 3 November 24th 04 07:00 PM
time format and adding tiome values. dave m Excel Worksheet Functions 3 November 20th 04 07:55 AM


All times are GMT +1. The time now is 06:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"