Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Merged cells width

Is there a way to set the width of a merged cell? I have a spreadsheet
with cells A to F in row 5 merged for a title. The width of the title
varies depening on where the data comes from. The data is extracted by
an advanced filter and the title is determined by a user selection on
another sheet.
As it is now, the column widths for A to F are best fit. Sometimes this
displays the contents of row 5, sometimes it truncates it. I'd really
prefer that the column widths be set by the width of the merged cells
in row 5. I know there is no "best fit" for merged cells, so my
alternative is to figure out what the widest entry would be and set the
width accordingly, if possible. If so, can anyone tell me how to do it?
If not, any other ideas?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Merged cells width

Take the longest title and put it in a single cell. Then autofit the cell
or drag the column wide enough to meet your requirements. Check what the
width of the column is. Use that.

--
Regards,
Tom Ogilvy

"davegb" wrote in message
oups.com...
Is there a way to set the width of a merged cell? I have a spreadsheet
with cells A to F in row 5 merged for a title. The width of the title
varies depening on where the data comes from. The data is extracted by
an advanced filter and the title is determined by a user selection on
another sheet.
As it is now, the column widths for A to F are best fit. Sometimes this
displays the contents of row 5, sometimes it truncates it. I'd really
prefer that the column widths be set by the width of the merged cells
in row 5. I know there is no "best fit" for merged cells, so my
alternative is to figure out what the widest entry would be and set the
width accordingly, if possible. If so, can anyone tell me how to do it?
If not, any other ideas?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 573
Default Merged cells width

Thanks, Tom!

Tom Ogilvy wrote:
Take the longest title and put it in a single cell. Then autofit the cell
or drag the column wide enough to meet your requirements. Check what the
width of the column is. Use that.

--
Regards,
Tom Ogilvy

"davegb" wrote in message
oups.com...
Is there a way to set the width of a merged cell? I have a spreadsheet
with cells A to F in row 5 merged for a title. The width of the title
varies depening on where the data comes from. The data is extracted by
an advanced filter and the title is determined by a user selection on
another sheet.
As it is now, the column widths for A to F are best fit. Sometimes this
displays the contents of row 5, sometimes it truncates it. I'd really
prefer that the column widths be set by the width of the merged cells
in row 5. I know there is no "best fit" for merged cells, so my
alternative is to figure out what the widest entry would be and set the
width accordingly, if possible. If so, can anyone tell me how to do it?
If not, any other ideas?


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
How can I sort an Excel Doc containing merged & non-merged cells? KellyH Excel Discussion (Misc queries) 11 June 10th 08 04:12 AM
Autofit Merged cell Code is changing the format of my merged cells JB Excel Discussion (Misc queries) 0 August 20th 07 02:12 PM
Excel - Automate row width for merged cells with wrapped text Sweetiedaw Setting up and Configuration of Excel 0 September 7th 06 10:23 PM
how do i link merged cells to a merged cell in another worksheet. ibbm Excel Worksheet Functions 3 April 27th 06 11:40 PM
Sorting merged cellsHow do I sort merged cells not identically siz Laval Excel Worksheet Functions 1 November 3rd 04 09:40 PM


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