Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
anny
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
anny
 
Posts: n/a
Default VB syntax help requested

Dave, thankyou
anny


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
Syntax for using "IF"... garry05 Excel Discussion (Misc queries) 4 December 7th 05 10:15 PM
Insert more than 1 Row Syntax blazzae Excel Worksheet Functions 5 July 10th 05 12:46 AM
Rate syntax KWIGZ Excel Discussion (Misc queries) 2 June 16th 05 07:59 PM
WHAT SYNTAX IS USED TO ROUND A 4-DIGIT NUMBER TO THE NEAREST THOUS KENITOSAN Excel Discussion (Misc queries) 4 February 19th 05 10:06 PM
Previous Post - Correct Syntax Query Clarence Crow Excel Worksheet Functions 0 December 7th 04 05:35 AM


All times are GMT +1. The time now is 07:19 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"