PC Review


Reply
Thread Tools Rate Thread

Apply format to whole column depending on row 1 contents

 
 
=?Utf-8?B?c3R5bmU2NjY=?=
Guest
Posts: n/a
 
      7th Nov 2006
This is what I want the script to do, but how do I write it?

' ===============================>
Look through ActiveSheet.UsedRange

if <the first cell in column> contains (text1, text2 or text3)
whole column
width: auto
top cell only in column
text direction: horizontal
text align: h-left, v-bottom
rest of cells in column
text direction: horizontal
text align: h-left, v-middle

if <the first cell in column> contains anything else
whole column
width: 4
top cell only in column
text direction: vertical
text align: h-center, v-bottom
rest of cells in column
text direction: horizontal
text align: h-right, v-middle

move to next column and repeat until reached the end of
ActiveSheet.UsedRange
' <===============================

Hope this is clear!

Kind Regards,
Samuel Harmer
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format sheet based on column contents C Microsoft Excel Programming 1 19th Apr 2010 05:51 PM
Can I apply my column format to all subfolders automatically? =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Outlook Installation 6 5th Jul 2008 11:26 AM
Can I apply my column format to all folders automatically Ido Microsoft Outlook Installation 2 22nd May 2008 11:44 PM
How to apply an automatic format to a column? =?Utf-8?B?QXVzc2llQnVtQnhs?= Microsoft Excel Worksheet Functions 2 18th Aug 2007 03:23 PM
How do I change a buttons contents depending on a cells contents? =?Utf-8?B?S29zaDQyfEVGRw==?= Microsoft Excel Programming 2 16th Feb 2005 02:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 PM.