LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default worksheetfunction.vlookup?

hi,
here's what i'm trying to do:

have a workbook as db;
example:
x1 map_nameitem_code Jan-03 Fev-03 Mar-03
a fstock ibz 3
a bstock ibz 6
b fstock ibu 7
a bstock irz 5

have another to input data (by the end user). the data is input with normal desinged maps with xl cells;
example:

date
a fstock ibz 3
a fstock ibu 4
a fstock irz 5

b fstock ibz 6
b fstock ibu 7
b fstock irz 8

have another to sort the data (choosed by the end user).

what i can't do is to put the date inputed in the correct db cells.

i've than so far the followes:

Dim count As Integer
Dim n As Integer
Dim tabela As String
Dim look As String
Dim column As Integer
Dim rg As Range

count = Workbooks("BDs").Worksheets("bd_lx").Range("A2").V alue
column = 3
For n = 4 To count
look = Workbooks("BDs").Worksheets("bd_lx").Range("B" & n).Value
tabela = Workbooks("BDs").Worksheets("bd_lx").Range("A" & n).Value
rg = tabela

Application.WorksheetFunction.VLookup(look, rg, column, False).Select
Selection.Copy
Range("B:" & n).Select
Selection.End(xlRight).Select
ActiveCell.Offset(1, 0).Activate
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Next n

please help!
 
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
WorksheetFunction.Vlookup leerem Excel Discussion (Misc queries) 8 October 25th 08 07:58 PM
"Unable to get the VLookup property of the WorksheetFunction class Ayo Excel Discussion (Misc queries) 4 August 6th 08 10:00 PM
Can't use WorksheetFunction Yossi Excel Discussion (Misc queries) 5 January 25th 06 10:07 PM
Worksheetfunction.vlookup and #value error BL Excel Worksheet Functions 2 June 17th 05 09:48 PM
worksheetfunction devnext Excel Programming 1 October 29th 03 12:48 PM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"