Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Autofill till cell "x"

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Autofill till cell "x"

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Autofill till cell "x"

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
addera 1 till cell "automatiskt" Big G[_2_] Excel Discussion (Misc queries) 0 September 24th 09 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 Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
autofill or copy & paste "till a value" uriel78 Excel Programming 5 March 25th 05 07:39 PM


All times are GMT +1. The time now is 05:21 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"