View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default VBA Variables....

What is the data you are trying to fill-down?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"MarkHear1" wrote in message
oups.com...
On 15 Feb, 12:23, "Bob Phillips" wrote:
Mark,

It worked for me. What are you getting?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"MarkHear1" wrote in message

oups.com...



I am still having problems with my varaibles. Below is the code i have
written, can anybody offer any help as to why it is not working?


Dim BottomRow As Range
Set BottomRow = ActiveCell


Range("a2").Select
Dim Beginning As Range
Set Beginning = ActiveCell


Selection.AutoFill Destination:=Range(Beginning, BottomRow.Offset(0,
-1)), Type:=xlFillDefault


Many Thanks,
Mark- Hide quoted text -


- Show quoted text -


Hummmmmm very odd. The error I am getting is as follows...
Run-Time error '1004':
AutoFill method of Range class failed.


- Mark