syntax question

  • Thread starter Thread starter Giselle
  • Start date Start date
G

Giselle

Hi XLers

This code fragment works well, resulting in a cell value of, for example,
Teacher

Worksheets("PrintRpt").Range("C1").Formula =
"=INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"


But, I want the cell value to be Job Title: Teacher

I know this should be simple, but I can't get the syntax to work?

TQ for any help
Giselle
 
Like:

Worksheets("PrintRpt").Range("C1").Formula _
= "=""Job title: "" & INDEX(Job_List!J:J,MATCH(A4,Job_List!A:A,0))"

You have to double up the quotes within the strings.
 
because ="=""Giselle "" &"" excel knowledge < Daves excel knowledge "" "
--
paul
remove nospam for email addy!



Giselle said:
=" =""Why couldn't "" & ""I"" & ""think of that!"" "
Giselle
 
Gawd, those double quotes are confusing!

I sometimes type the formula in a cell, then copy and paste into the code--and
remember to double them up after I paste.
because ="=""Giselle "" &"" excel knowledge < Daves excel knowledge "" "
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top