Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default fill format only

Tom Ogilvy kindly provided the following code that I use to copy a formula
and format when adding items to a list:

LastRow.Offset(1,3).Resize(1,2).Filldown

I was just wondering what I could use if I only wanted to fill the format of
the cell above and not the formula or data.

GK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default fill format only

One way:

With lastRow.Offset(0, 3).Resize(1, 2)
.AutoFill Destination:=.Resize(2, 2), Type:=xlFillFormats
End With




In article , "gregork"
wrote:

Tom Ogilvy kindly provided the following code that I use to copy a formula
and format when adding items to a list:

LastRow.Offset(1,3).Resize(1,2).Filldown

I was just wondering what I could use if I only wanted to fill the format of
the cell above and not the formula or data.

GK

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default fill format only

Thats done the trick JE.

Many thanks
GK


"JE McGimpsey" wrote in message
...
One way:

With lastRow.Offset(0, 3).Resize(1, 2)
.AutoFill Destination:=.Resize(2, 2), Type:=xlFillFormats
End With




In article , "gregork"
wrote:

Tom Ogilvy kindly provided the following code that I use to copy a

formula
and format when adding items to a list:

LastRow.Offset(1,3).Resize(1,2).Filldown

I was just wondering what I could use if I only wanted to fill the

format of
the cell above and not the formula or data.

GK



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
Auto Fill Format or Copying Formulas Marie Excel Discussion (Misc queries) 1 April 29th 10 10:47 PM
Format Excel Sheet to Fill Page CommMajor Excel Discussion (Misc queries) 1 October 27th 09 04:06 PM
Fill format default Pivo Excel Discussion (Misc queries) 0 July 29th 08 11:17 PM
Format Fill Down to Last Row Keep It Simple Stupid Excel Worksheet Functions 6 November 12th 07 07:18 PM
How do I format a picture fill in my pie chart? contextman Charts and Charting in Excel 0 June 10th 05 04:57 PM


All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"