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

using quotation marks

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

Using quotation marks

ResolvedVersion 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:

Run with the total

Often when creating reports with lists of transactions it can be useful to have a column which totals the transactions as the report progresses.

Using the Sum function gives the total for the whole group, not a running total.



Access provides an easy method of achieving a running total.



Click on the text box containing the data you wish to contain the running total.
Select the Data tab
Click in the Running sum option
Click the down arrow to view three options

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.08 secs.