Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() Hi all! I've got Sheet 1 (see attached). Let's say I've got a formula (assume a VLOOKUP formula) in B2 and I want to autofill down to the other cells in the B column until a blank column is reached in the A column. Does anyone know how I can make a macro for this? Any help would be greatly appreciated. Thanks! +-------------------------------------------------------------------+ |Filename: Sheet1.JPG | |Download: http://www.excelforum.com/attachment.php?postid=3994 | +-------------------------------------------------------------------+ -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#2
![]() |
|||
|
|||
![]() Range("B2").Autofill Range("B2").Resize(Range("B2").End(xlDown).Row-1) -- HTH RP (remove nothere from the email address if mailing direct) "uberathlete" wrote in message ... Hi all! I've got Sheet 1 (see attached). Let's say I've got a formula (assume a VLOOKUP formula) in B2 and I want to autofill down to the other cells in the B column until a blank column is reached in the A column. Does anyone know how I can make a macro for this? Any help would be greatly appreciated. Thanks! +-------------------------------------------------------------------+ |Filename: Sheet1.JPG | |Download: http://www.excelforum.com/attachment.php?postid=3994 | +-------------------------------------------------------------------+ -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#3
![]() |
|||
|
|||
![]() ^^ Thanks! I tried it but it doesn't seem to work :( -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#4
![]() |
|||
|
|||
![]()
It works for me. What do you get?
-- HTH RP (remove nothere from the email address if mailing direct) "uberathlete" wrote in message ... ^^ Thanks! I tried it but it doesn't seem to work :( -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#5
![]() |
|||
|
|||
![]() Whoops, my bad. I tried it again and it works. Only problem is that the blank cells in the B column which have no "match" or value in the A column all fill up with 0. -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#6
![]() |
|||
|
|||
![]()
Maybe using column A would work better:
Range("B2").Autofill Range("B2").Resize(Range("A2").End(xlDown).Row-1) uberathlete wrote: ^^ Thanks! I tried it but it doesn't seem to work :( -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 -- Dave Peterson |
#7
![]() |
|||
|
|||
![]() Wicked! Thanks Bob! -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
#8
![]() |
|||
|
|||
![]()
Change your formula to test fro 0 and output "".
-- HTH RP (remove nothere from the email address if mailing direct) "uberathlete" wrote in message ... Whoops, my bad. I tried it again and it works. Only problem is that the blank cells in the B column which have no "match" or value in the A column all fill up with 0. -- uberathlete ------------------------------------------------------------------------ uberathlete's Profile: http://www.excelforum.com/member.php...o&userid=28388 View this thread: http://www.excelforum.com/showthread...hreadid=482220 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting Purely BLANK Cell | Excel Worksheet Functions | |||
Replace null string with blank cell | Excel Discussion (Misc queries) | |||
Look for change next blank cell in Range | Excel Worksheet Functions | |||
AutoFIll -by dragging the bottom-right corner of the cell | Excel Discussion (Misc queries) | |||
How do I autofill combo boxes with their destination cell? | Excel Worksheet Functions |