If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Excel Templates - Many problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-10, 13:15
Rick Schreiber Rick Schreiber is offline
Registered User
 
Join Date: Mar 2004
Location: California
Posts: 400
Excel Templates - Many problems

I have an 2003 Excel template.xlt with three worksheets, each saved with columns that have the following formats:

currency 0 decimal
number 0 decimal with "," separator
percent .2 decimal example -23.59%
borders
column width and height

My process is - export an 2003 Access query to Excel 2003 format.

Copy the data in nine columns and paste it into my template.

PROBLEMS:

When I "paste special" "All" into my template page it loses the currency, number, and percent formatting saved in the template. It also removes all light gray row borders.

The percent columns seems to be pasted in a text format as the little green triangle icon is in the top left hand corner asking if I want to convert the cell into a number format. This is in each percent cell.

Conditional Formatting (font color) and row and column dimensions ARE NOT changed when I paste the data into the template.

How do I prevent losing currency, number, percent and border formatting in the template.

Thanks

Rick
Reply With Quote
  #2 (permalink)  
Old 11-28-10, 13:49
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi Rick,

Try Paste Special > Values rather than Paste Special > All.
This should leave your formatting intact.

It also looks like your Access query is exporting some fields as strings rather than doubles, so that needs to be looked at.

Hope that helps...
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA
Reply With Quote
  #3 (permalink)  
Old 11-28-10, 13:55
Rick Schreiber Rick Schreiber is offline
Registered User
 
Join Date: Mar 2004
Location: California
Posts: 400
Export "Values"

Thanks Colin - Ill try that when I'm at the office tomorrow.

Rick
Reply With Quote
  #4 (permalink)  
Old 12-14-10, 11:26
jacko44 jacko44 is offline
Registered User
 
Join Date: Dec 2010
Posts: 1
Thanks Colin. I was have the same basic issue and your solution worked like a charm.
Reply With Quote
  #5 (permalink)  
Old 12-20-10, 20:51
sincitykid sincitykid is offline
Registered User
 
Join Date: Dec 2010
Posts: 2
I had a similar problem awhile back and could not figure it out for the life of me. This post would have helped.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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