LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Macro help/advice please!

Hi,

I am trying to write a macro do automatically format 6 cells in a row.
This I've managed, but find I'm stuck on the next bit. I want the
macro to repeat the format in the next row (and subsequent rows) until
the row has no data in it. The macro so far is

Range("F18:J18").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With

End Sub

I want to repeat this until cell F in the next row is empty. I suspect
I need something like a "do until" loop, but can't see how to write it
as all the examples I've seen don't seem to cover formatting.

Can anyone please point me in the right direction to get this
achieved?
--
Cheers

Peter

Please remove the invalid to 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
pls advice dribler2 Excel Worksheet Functions 0 December 29th 06 02:22 PM
Advice on Creating an Excel Formula or Macro - PLEASE HELP!!!! So Tru Geo Excel Worksheet Functions 1 June 27th 06 07:15 PM
Advice Please? Greg[_27_] Excel Programming 3 May 9th 06 10:51 AM
Advice please Greg New Users to Excel 2 February 24th 05 12:19 PM
macro advice tommy Excel Programming 2 August 27th 04 06:45 PM


All times are GMT +1. The time now is 08:35 PM.

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"