xlFillFormat to Right

  • Thread starter Thread starter ryguy7272
  • Start date Start date
R

ryguy7272

How do I use xlFillFormat for 9 columns to the right of my current Column
(which is Column A)?

I have this code:
ActiveCell.Resize(, 9).Select
Selection.AutoFill Destination:=.Range(.Cells(, 9), Type:=xlFillFormats

The second line is failing.
Please help!

Thanks!
Ryan---
 
maybe this:

Sub test()
With ActiveCell
..AutoFill Destination:=.Resize(, 9), Type:=xlFillFormats
End With
End Sub
 

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

Back
Top