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


When I write the lines
PutOnReport("B" & leftChoise * 22 - 15, "A5")
PutOnReport("B" & rightChoise * 22 - 15, "M5")

I get the message:

COMPILE ERROR:
EXPECTED:




PutOnReport is a method (sub made by) that puts values from two test
on sheet Report, one test on the left, another on the right.

LeftChoise is the test chosen to be on the left, rightchoise on th
right
A5 is the cell on sheet Report where data from the leftchoise has to b
put, M5 for the right choise.

why do I get this message and how correct it

--
Zur
-----------------------------------------------------------------------
Zurn's Profile: http://www.excelforum.com/member.php...fo&userid=1464
View this thread: http://www.excelforum.com/showthread.php?threadid=26380

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Expected:= ???

Does it work if you call your subroutine like this:

PutOnReport "B" & leftChoise * 22 - 15, "A5"
PutOnReport "B" & rightChoise * 22 - 15, "M5"

The parenthesis are not allowed in the syntax you used below.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Zurn" wrote in message
...

When I write the lines
PutOnReport("B" & leftChoise * 22 - 15, "A5")
PutOnReport("B" & rightChoise * 22 - 15, "M5")

I get the message:

COMPILE ERROR:
EXPECTED: =




PutOnReport is a method (sub made by) that puts values from two tests
on sheet Report, one test on the left, another on the right.

LeftChoise is the test chosen to be on the left, rightchoise on the
right
A5 is the cell on sheet Report where data from the leftchoise has to be
put, M5 for the right choise.

why do I get this message and how correct it?


--
Zurn
------------------------------------------------------------------------
Zurn's Profile:
http://www.excelforum.com/member.php...o&userid=14645
View this thread: http://www.excelforum.com/showthread...hreadid=263805



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
Too few parameters. Expected 2 Suzanne Excel Discussion (Misc queries) 1 June 5th 08 12:46 AM
How to find the Expected Value of a PDF backformystuff Excel Worksheet Functions 1 February 1st 07 06:54 AM
Not sorting as expected Robbie New Users to Excel 4 August 15th 06 02:27 AM
Expected end of Statement FIRSTROUNDKO via OfficeKB.com Excel Worksheet Functions 2 April 11th 06 11:59 AM
Expected:expression Capinvest Excel Programming 3 August 4th 03 02:36 PM


All times are GMT +1. The time now is 05:50 PM.

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

About Us

"It's about Microsoft Excel"