how to put " in a cell thru macro

T

Tang

i want to put "=if(a1="","",a1)" in cell B1 thru macro, but get error
message.

the macro line is as follow:
range("B1").value = "=if(a1="","",a1)"

hope someone can give your guidance.
 

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