syntax error

N

Nigel

i have checked similar statements throughout the posts in this group,
and it seems that my syntax is the same...but i get a syntax error..i
dont get it

ActiveCell.Formula = "=F" & LPS "-J" & LPS "

LPS is a variable populated with a row #
 
C

Chip Pearson

Your quotes and & are out of whack. Use

ActiveCell.Formula = "=F" & LPS & "-J" & LPS


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
(email address is on the web site)
 

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