PC Review


Reply
Thread Tools Rate Thread

Code Termintes

 
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      26th Jan 2007
Greetings,

Below are a couple of lines from some code I am running. When the code
reaches the Autofill line, it runs the code (autofill takes place), but then
the code just stops (doesn't proceed to the next line of code) and reverts
back to the beginning of the sub. I've tried stepping through this, so I
know exactly where it is happening, but I can't figure out why? I have the
same type type of code in a different workbook and it works fine. Any ideas?
Thanks.

Range("X2:AO2").Select
Selection.AutoFill Destination:=Range("X2:AO1000")
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      26th Jan 2007
I just tested your code, as written to 2000 and it worked fine but this idea
might be better.

Sub filldown()
Range("x2:ao2").AutoFill Range("x2:ao1000")
End Sub

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Jason" <(E-Mail Removed)> wrote in message
news:E7514568-B4F9-4112-AEF4-(E-Mail Removed)...
> Greetings,
>
> Below are a couple of lines from some code I am running. When the code
> reaches the Autofill line, it runs the code (autofill takes place), but
> then
> the code just stops (doesn't proceed to the next line of code) and reverts
> back to the beginning of the sub. I've tried stepping through this, so I
> know exactly where it is happening, but I can't figure out why? I have
> the
> same type type of code in a different workbook and it works fine. Any
> ideas?
> Thanks.
>
> Range("X2:AO2").Select
> Selection.AutoFill Destination:=Range("X2:AO1000")



 
Reply With Quote
 
=?Utf-8?B?Sk5X?=
Guest
Posts: n/a
 
      26th Jan 2007
Do you have a worksheet change event that runs, or something similar?

If so you'll need to add
application.enableevents = false
before the lines then
application.enableevents = true
after.
--
JNW


"Jason" wrote:

> Greetings,
>
> Below are a couple of lines from some code I am running. When the code
> reaches the Autofill line, it runs the code (autofill takes place), but then
> the code just stops (doesn't proceed to the next line of code) and reverts
> back to the beginning of the sub. I've tried stepping through this, so I
> know exactly where it is happening, but I can't figure out why? I have the
> same type type of code in a different workbook and it works fine. Any ideas?
> Thanks.
>
> Range("X2:AO2").Select
> Selection.AutoFill Destination:=Range("X2:AO1000")

 
Reply With Quote
 
Wei Lu [MSFT]
Guest
Posts: n/a
 
      31st Jan 2007
Hi ,

How is everything going? Please feel free to let me know if you need any
assistance.

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linq to XML--Are there code examples that make Linq as easy as SQL? Or how can I convert ths simple pseudo code into real code? Reece Microsoft C# .NET 4 10th Dec 2008 03:13 AM
ATI Radeon Drivers - Code 43, Code 37 & Code 10 =?Utf-8?B?SmFrZQ==?= Windows Vista Hardware 14 29th Aug 2006 05:50 AM
ATI Display Drivers - Code 43, Code 37, Code 10 Jake Windows Vista Hardware 2 8th Jul 2006 04:00 PM
what is the difference between code inside a <script> tag and code in the code-behind file? keithb Microsoft ASP .NET 1 29th Mar 2006 02:00 AM
[New] Zipoid - ZIP Code, City Name and Area Code Lookup - Zip Code to Zip Code Distance Calculation Mel Freeware 0 22nd Jul 2005 04:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.