using quotation marks

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Using quotation marks

Using quotation marks

resolvedResolved · Low Priority · Version 2003

Juho has attended:
Excel VBA Intro Intermediate course

Using quotation marks

Hi,

I would need to add a formula that includes quotation marks from vb into a worksheet.

The formula beeing

=VLOOKUP(TEXT(Interface!K34,"????/????"),Odds!$S$1:$T$81,2)

I've tried it in form:

Sheets(1).Cells(35, 11).Value = "=VLOOKUP(TEXT(Interface!K34,"????/????"),Odds!$S$1:$T$81,2)"

but vb doesn't seem to like quotation marks inside other quotation marks. Is there a way of gettibg around this.

Thans for you help in advance,

Juho

RE: Using quotation marks

Hi Juho

Thank you for your question.

Quotes within a string can be done if you double the quotes.

"=VLOOKUP(TEXT(Interface!K34,""????/????""),Odds!$S$1:$T$81,2)"

Regards

Laura GB

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Related tables

When you have related tables such as Customers and their Orders, the Customer table is the Primary table.

Open the Customers table in datasheet view and go to the Home Tab and Records group. Click on the More option and choose Subdatasheet and then click on Subdatasheet again. Now choose the related table (Orders) and click ok.

Now you can click the + symbol by each company to show the related orders.

View all Access hints and tips


Server loaded in 0.08 secs.