Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default vba for lookup and autofill

Hi all, I'm creatinf a vlookup from a column in one shhet to a column in
another, I then want to autofill to the end of the column automatically .
Can anyone help.
Thanks a lot.
--
delmac
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default vba for lookup and autofill

You don't give many details, but this sets up a typical formula in B1, and
copies down 100 rows

With Range("B1")
.FormulaR1C1 = "=VLOOKUP(RC[-7],Sheet2!RC[-2]:R[13]C[4],2,FALSE)"
.AutoFill Range("B1").Resize(100)
End With


--
HTH

Bob Phillips

"delmac" wrote in message
...
Hi all, I'm creatinf a vlookup from a column in one shhet to a column in
another, I then want to autofill to the end of the column automatically .
Can anyone help.
Thanks a lot.
--
delmac



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
How can I isolate a lookup vectors but not values from autofill? rjpeltz Excel Worksheet Functions 2 May 15th 06 07:41 PM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Excel Discussion (Misc queries) 1 June 17th 05 08:21 PM
Autofill Confused? Excel Worksheet Functions 1 March 24th 05 10:34 PM
Q. Autofill question: Can I autofill alpha characters like I can numbers? George[_22_] Excel Programming 5 August 7th 04 10:33 AM
Autofill & Lookup Function Chris Hankin Excel Programming 11 May 4th 04 08:18 PM


All times are GMT +1. The time now is 05:33 AM.

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"