LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default Macro to set column widths in a worksheet

On Tue, 14 Jul 2009 16:32:55 -0400, Phil Bracken wrote:

Hi,
I've tried to create a macro that will go in and set the column widths
(columns A thru M) to specific widths. Each column is a different
width. I used the record button and set them as I wanted and then
stopped the recording. When I went to another worksheet in the same
workbook and executed I could see it change the width for a split
second and then they each went to a standard 7.71 width. No error
messages. No explanations.

My goal is a macro to be able to import or copy a page from 5
different worksheets that I receive twice a month and be able to view,
print and extract data from them for other reports.

Thanks in advance,
Phil


Sounds strange. Not just that they went back to standard width, but the
standard width you mention is not "Standard". Standard column width in XL,
for as long as I can remember (late 80's) is 8.43 points.

I would redo the macro, and this time, set the column widths for all
sheets, not just the first. See if that helps.

Which still doesn't address the issue of why they went back. ?? Maybe
someone else has run across this glitch.


 
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
Worksheet Column Widths Different For Different Users Falcon Feet[_2_] Excel Discussion (Misc queries) 2 March 24th 10 01:05 PM
Different column widths within one worksheet saramac24 Excel Discussion (Misc queries) 4 February 8th 07 02:54 AM
Set different column widths on two halves of an Exc worksheet Ballooner Excel Discussion (Misc queries) 1 March 20th 06 08:07 PM
Are different column widths possible on the same worksheet? yinone Excel Worksheet Functions 6 November 18th 05 04:28 PM
Can I have different column widths in a worksheet? Kylie Excel Worksheet Functions 0 July 7th 05 05:03 PM


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