fill format only

  • Thread starter Thread starter gregork
  • Start date Start date
G

gregork

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
 
One way:

With lastRow.Offset(0, 3).Resize(1, 2)
.AutoFill Destination:=.Resize(2, 2), Type:=xlFillFormats
End With
 
Thats done the trick JE.

Many thanks
GK


JE McGimpsey said:
One way:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top