PC Review


Reply
Thread Tools Rate Thread

Autofill till cell "x"

 
 
=?Utf-8?B?amFjMDA3?=
Guest
Posts: n/a
 
      2nd Oct 2006
Is there a way to auto fill a formula or a value all the way down of a column
till it finds the value "x" and stop on the cell above the cell with the
value "x" in that column? This would really help me out. Thanks!
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      2nd Oct 2006
i'm still learning, but i've used the "x" trick sometimes to tell a
macro when to stop.
in this case, you could loop thru & check each cell for the "x".
something like:

sub copypaste()

copy("b3") ' or whatever cell you want
range.offset (0,1)

'in my experience, autofill is the same
'as copy in that the cell references
'change.

do
if activecell=("x") then
exit sub
else
paste
range.offset (0,1)
end do

end sub

warning - don't copy this!!!! it's just an idea. the syntax is
probably all wrong - i'd have to look it all up myself to make it work
right, but perhaps the idea will get you started.
susan

 
Reply With Quote
 
=?Utf-8?B?amFjMDA3?=
Guest
Posts: n/a
 
      2nd Oct 2006
Thanks, but not really what I was looking for. Besides, I don't know VBA
coding.

"Susan" wrote:

> i'm still learning, but i've used the "x" trick sometimes to tell a
> macro when to stop.
> in this case, you could loop thru & check each cell for the "x".
> something like:
>
> sub copypaste()
>
> copy("b3") ' or whatever cell you want
> range.offset (0,1)
>
> 'in my experience, autofill is the same
> 'as copy in that the cell references
> 'change.
>
> do
> if activecell=("x") then
> exit sub
> else
> paste
> range.offset (0,1)
> end do
>
> end sub
>
> warning - don't copy this!!!! it's just an idea. the syntax is
> probably all wrong - i'd have to look it all up myself to make it work
> right, but perhaps the idea will get you started.
> susan
>
>

 
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
Re: Not saving records till "save" command button clicked Jeanette Cunningham Microsoft Access Form Coding 2 14th May 2010 02:35 AM
malware?? infinite mutliple "internet explorer" windows till power off Maurice Windows XP General 3 16th Nov 2009 06:19 PM
addera 1 till cell "automatiskt" Big G Microsoft Excel Misc 0 24th Sep 2009 01:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Microsoft Excel Misc 2 8th Aug 2008 01:54 AM
autofill or copy & paste "till a value" uriel78 Microsoft Excel Programming 5 25th Mar 2005 07:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:13 AM.