Solved

SQL Data Into Excel

Posted on 2011-09-29
3
298 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

732 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