PC Review


Reply
Thread Tools Rate Thread

create a vlookup formula with VBA

 
 
PA
Guest
Posts: n/a
 
      30th Oct 2008
Hi,

I want to introduce 3 formulas in a range.the code is below and it
always gets stuck in the vlookup formulas. I must be blind because I
cannot see the error.
thanks a million

PA


For i = 8 To 100
Cells(i, 19).Formula = "=VALUE(T" & i & ")"
Cells(i, 17).Formula = "=VLOOKUP(S" & i & ";Tabela!B;
2;FALSE)"
Cells(i, 18).Formula = "=VLOOKUP(S" & i & ";Tabela!B;
3;FALSE)"
Next
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      30th Oct 2008
Change your semicolons to commas.

VBA is USA centric. But when the formulas are plopped into the cell, all will
be ok with the world.

PA wrote:
>
> Hi,
>
> I want to introduce 3 formulas in a range.the code is below and it
> always gets stuck in the vlookup formulas. I must be blind because I
> cannot see the error.
> thanks a million
>
> PA
>
> For i = 8 To 100
> Cells(i, 19).Formula = "=VALUE(T" & i & ")"
> Cells(i, 17).Formula = "=VLOOKUP(S" & i & ";Tabela!B;
> 2;FALSE)"
> Cells(i, 18).Formula = "=VLOOKUP(S" & i & ";Tabela!B;
> 3;FALSE)"
> Next


--

Dave Peterson
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      30th Oct 2008
Try replacing the semicolons with commas.
--
Jim Cone
Portland, Oregon USA



"PA"
wrote in message
Hi,
I want to introduce 3 formulas in a range.the code is below and it
always gets stuck in the vlookup formulas. I must be blind because I
cannot see the error.
thanks a million
PA

For i = 8 To 100
Cells(i, 19).Formula = "=VALUE(T" & i & ")"
Cells(i, 17).Formula = "=VLOOKUP(S" & i & ";Tabela!B; 2;FALSE)"
Cells(i, 18).Formula = "=VLOOKUP(S" & i & ";Tabela!B; 3;FALSE)"
Next
 
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
Link an IF formula with a cell containing a Vlookup formula Arno Microsoft Excel Programming 4 25th Nov 2008 08:28 PM
convert vlookup formula to link formula AFA Microsoft Excel Worksheet Functions 0 20th Feb 2008 04:24 AM
Is it possible to create a VLOOKUP formula based on an ActiveX con =?Utf-8?B?U3Jpc3VlcGhhbmg=?= Microsoft Excel Worksheet Functions 1 19th Oct 2007 04:41 AM
XLS - HOW Do I use the results of a formula to create NAME to vlookup Clive Geezer Microsoft Excel Programming 1 26th Nov 2005 03:04 PM
Vlookup formula where lookup value is a result a formula (receive. =?Utf-8?B?Y3BpdHRh?= Microsoft Excel Misc 2 25th Nov 2004 01:06 AM


Features
 

Advertising
 

Newsgroups
 


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