Formula to equal Blank

J

Jacqui Hurst

How can I enter the forumula

="="

with a VB script

When I enter it the VB script automatically changes it to

" =" = " "

I want to enter Range("K2").FormulaR1C1 = "="= but I guess
this must be arranged in quotes. If I don't put them in I
get an error and when I do it splits it up

Any help please

Jacqui
 
C

Chip Pearson

Jacqui,

Try the following

Range("K2").Formula = "=""="""

Whenever you need to include a quote (") in a string in VBA, use a
pair of quotes ("").

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 
J

Jacqui Hurst

Worked it out.

I used the ascii character codes.

Sorry to waste anyones time.

Jacqui
 

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

Top