Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VB syntax help requested
Hi
This code works well when placed in cell C5 of worksheet PrintRpts. =INDEX(MasterList!F:F,MATCH(A8,MasterList!A:A,0)) But, I need to do the same thing by VB, and my syntax needs fixing: Worksheets("PrintRpts").Range("C5") = INDEX(MasterList!F:F,MATCH(A8,MasterList!A:A,0)) suggestions appreciated anny |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VB syntax help requested
Do you want the formula placed in that cell or do you want the value?
with worksheets("printrpts").range("c5") .formula = "=INDEX(MasterList!F:F,MATCH(A8,MasterList!A:A,0)) " .value = .value 'only if you want end with anny wrote: Hi This code works well when placed in cell C5 of worksheet PrintRpts. =INDEX(MasterList!F:F,MATCH(A8,MasterList!A:A,0)) But, I need to do the same thing by VB, and my syntax needs fixing: Worksheets("PrintRpts").Range("C5") = INDEX(MasterList!F:F,MATCH(A8,MasterList!A:A,0)) suggestions appreciated anny -- Dave Peterson |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
VB syntax help requested
Dave, thankyou
anny |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Syntax for using "IF"... | Excel Discussion (Misc queries) | |||
Insert more than 1 Row Syntax | Excel Worksheet Functions | |||
Rate syntax | Excel Discussion (Misc queries) | |||
WHAT SYNTAX IS USED TO ROUND A 4-DIGIT NUMBER TO THE NEAREST THOUS | Excel Discussion (Misc queries) | |||
Previous Post - Correct Syntax Query | Excel Worksheet Functions |