Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default syntax error

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 #

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default syntax error

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



"Nigel" wrote:

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 #


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default syntax error

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)

"Nigel" wrote in message
oups.com...
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 #



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
runtime error: syntax error or access violation oucsester[_2_] Excel Programming 1 May 3rd 06 05:51 PM
runtime error: syntax error or access violation oucsester Excel Programming 0 May 3rd 06 02:22 PM
Syntax error loopoo[_13_] Excel Programming 3 November 22nd 05 12:53 PM
variable not declared error & syntax error G. Beard Excel Programming 1 October 6th 05 09:16 PM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"