Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default copy paste SQL query result to excel spreadsheet with formatting

How can I copy paste a SQL query result to an Excel spreadsheet without the
formatting of certain columns like(date, currency) getting affected? Right
now, I just use the copy-paste function and then I have to individually
select each date and currency column on the excel spreadhseet and change the
format. It's a labour intensive process when I have more than 20 columns to
format seperately and more than 100 spreadsheets. Please let me know if
there's a better way to go about it. Thanks for reading!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default copy paste SQL query result to excel spreadsheet with formatting

Unfortunately, there is no metadata in the clipboard that Excel can use to
pre-format or otherwise adjust the format from the sheet's default.

If you are using the same query again and again just with different
criteria, then set your formatting the way you want it after copying the
first result set. Now make a copy of that sheet and delete the data only.
Make as many copies of this new sheet as you need.

When you copy in each result set the pre-existing format should be retained


"Juliet" wrote:

How can I copy paste a SQL query result to an Excel spreadsheet without the
formatting of certain columns like(date, currency) getting affected? Right
now, I just use the copy-paste function and then I have to individually
select each date and currency column on the excel spreadhseet and change the
format. It's a labour intensive process when I have more than 20 columns to
format seperately and more than 100 spreadsheets. Please let me know if
there's a better way to go about it. Thanks for reading!

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
can you copy and paste row height formatting in excel donnabm Excel Discussion (Misc queries) 1 May 1st 06 07:14 PM
Query, copy & paste ThalesNate Excel Discussion (Misc queries) 9 February 3rd 06 02:24 AM
copy and paste excel spreadsheet into autocad rickr Excel Discussion (Misc queries) 0 July 15th 05 04:41 PM
Copy Paste of Formula Produces Incorrect Result JLa Excel Discussion (Misc queries) 1 May 17th 05 06:56 PM
How to preserve conditional formatting on a web query table result Simon L Excel Discussion (Misc queries) 9 February 26th 05 01:19 AM


All times are GMT +1. The time now is 09:46 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"