Solved

SQL Data Into Excel

Posted on 2011-09-29
3
299 Views
Last Modified: 2012-06-27
Hi all

I am currently creating a spreadshhet using SQL as my datasource i have imported the data and set it to refresh on open and users can also perform a background refresh.

The problem that i am having is when i have imported the data and sized the columns appropriatly everytime i refresh the data the formating i placed on the sheet is lost, is there a way to prevent this from happening?

John
0
Comment
Question by:pepps11976
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Accepted Solution

by:
Arno Koster earned 500 total points
ID: 36814911
There is a way :

click on a data cell
click on "Properties" in the data - connections tab
remove the ticks for  'keep cell formatting' and 'adjust column widht'
0
 

Author Comment

by:pepps11976
ID: 36814934
What a Star Thanks very much
0
 
LVL 6

Expert Comment

by:Faisal Khan
ID: 36814989
are you doing via vba? try using cell.value i.e, sheet1.cell(x,y).value ="123456" instead of sheet1.cells(x,y)="123456"
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question