#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 64
Default Column width

Hi there. I've had a lot of trouble with one as well. In this case, are you
getting new columns of data when you refresh? If so, then you are getting
column size from some other setting somewhere (I never have figured that
out). The only way I've been able to solve this is by progromatically
adjusting column width on a refresh. Of course I'm terribly lazy so there
may actually be a better way but once I solved it, I just use that code... :)

If you are familiar with code, then you need to create a class module for the
query and then use the AfterRefresh event on the query table. Have it run a
function that adjusts the column width.

I would imagine that other people in this group would have a lot better code
than I do, but maybe this will be a start.

If you are not getting new columns then you should be able to select the
"Preserve Cell Format" check box off the "Table Settings" right click menu.

Hope it helps,
Nathan

"rml" wrote:

That does not work. When I refresh data, it still resizes the whole column.

"Debra Dalgleish" wrote:

Right-click on a cell in the table
Choose Data Range Properties
Remove the check mark from 'Adjust column width'
Click OK

rml wrote:
I have a sheet that connect to an access database. It updates data on my
sheet from a query in access. It works great. My problem is this: every
time I refresh or update the data, the column resizes to a default or smaller
width. How can I freeze a columns width?

Thanks.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


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
Column Width zhj23 Excel Discussion (Misc queries) 0 February 12th 06 02:57 AM
Changed column width keeps reverting back to original size David Boone Excel Discussion (Misc queries) 3 May 29th 05 01:22 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
Is it possible to create one column with two different width? Dave H... Excel Worksheet Functions 1 February 21st 05 05:52 PM
Change the width of a single column in a column chart Dave Charts and Charting in Excel 2 December 13th 04 07:25 PM


All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"