?
Solved

SQL Data Into Excel

Posted on 2011-09-29
3
Medium Priority
?
304 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
3 Comments
 
LVL 19

Accepted Solution

by:
Arno Koster earned 2000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

840 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