Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 127
Default Determining if column(s) need to be Autofitted

Excel 2003. I programmatically build a year to date master workbook from the
monthly workbooks we create. The master and the monthlys all have the same
number of sheets. I simply copy sheet 1 of January, sheet 1 of February, and
so on into sheet 1 of the master, with each sheets data being tacked on to
the bottom of the previous month's data. Each sheet in the monthly books has
had it columns autoifitted to the data. However, when I copy into to master
book the column widths are those of the January data. Thus, if any
subsequent months have data requiring a wider column, then the data is
displayed as #######.

How may I check to see if there is ANY data in a particular column that does
not have enough space to be displayed? I can take it from there. I just
need to know how to detect if a column has data that is too wide to display.
Thanks for any help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Determining if column(s) need to be Autofitted


Turn on the macro recorder and Do
Select all cells
Edit=Find
###
uncheck Whole word and have it look at values (not formulas).

--
Regards,
Tom Ogilvy


"Chaplain Doug" wrote in message
...
Excel 2003. I programmatically build a year to date master workbook from

the
monthly workbooks we create. The master and the monthlys all have the

same
number of sheets. I simply copy sheet 1 of January, sheet 1 of February,

and
so on into sheet 1 of the master, with each sheets data being tacked on to
the bottom of the previous month's data. Each sheet in the monthly books

has
had it columns autoifitted to the data. However, when I copy into to

master
book the column widths are those of the January data. Thus, if any
subsequent months have data requiring a wider column, then the data is
displayed as #######.

How may I check to see if there is ANY data in a particular column that

does
not have enough space to be displayed? I can take it from there. I just
need to know how to detect if a column has data that is too wide to

display.
Thanks for any help.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org



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
Determining if a value already exists in column(s) Rookie_User Excel Discussion (Misc queries) 0 October 3rd 06 05:32 PM
Determining if values in a column range are of same value. Bing Excel Programming 5 March 14th 05 12:43 PM
Determining Column to Use Frank Kabel Excel Programming 1 May 17th 04 10:16 PM
Determining Column to Use chris Excel Programming 0 May 17th 04 10:16 PM
determining last column jacqui Excel Programming 4 July 24th 03 09:38 PM


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