How to imput " " (quotes) in to your cells

  • Thread starter Thread starter Lee
  • Start date Start date
L

Lee

Hi there,
I'd like to input " " (quotes sign) in to cells as
string, for example "Hello there", how to do this through
VBA?
Also, I also want to input "=" (equal sign) into the
cells too. How to do this.
Thanks
Lee
 
Demo'd from the immediate window:

Activecell.Value = """Hello there"""
? activeCell.Value
"Hello there"


to put double quotes in a string, use two double quotes.

If you want to put a formula in a cell

ActiveCell.Formula = "=Sum(A1:A10)"
 

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

Back
Top