Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default xlFillFormat to Right

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---

--
RyGuy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default xlFillFormat to Right

maybe this:

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

--


Gary

"ryguy7272" wrote in message
...
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---

--
RyGuy



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



All times are GMT +1. The time now is 10:36 PM.

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"