Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default What am I doing wrong, here?

On Sheet1 (activesheet) I have numbers in Range B1:C200.

In the immediate window I've entered:

Activesheet.Range("A:A").Formula = (Range("B1:B200") * Range("C1:C200"))

When I press enter I get a run-time error 13, type mismatch
Noting gets into Col A (which shoud be the product of
B * C (according to each row.

What am I doing wrong?





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default What am I doing wrong, here?

Try Putting this into the Immediate Window:
x = 1
Do Until x = 201
Activesheet.Cells(x, 1).Formula = "=Sum(B1:B200)*Sum(C1:C200)"
x = x + 1
Loop

Jason Zischke

"Jim May" wrote:

On Sheet1 (activesheet) I have numbers in Range B1:C200.

In the immediate window I've entered:

Activesheet.Range("A:A").Formula = (Range("B1:B200") * Range("C1:C200"))

When I press enter I get a run-time error 13, type mismatch
Noting gets into Col A (which shoud be the product of
B * C (according to each row.

What am I doing wrong?






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default What am I doing wrong, here?

Sorry Jim This will work much better in your Immediate window :

Activesheet.Range("A:A").Formula ="=Sum(B1:B200)*Sum(C1:C200)"

Jason Zischke

"Jason Zischke" wrote:

Try Putting this into the Immediate Window:
x = 1
Do Until x = 201
Activesheet.Cells(x, 1).Formula = "=Sum(B1:B200)*Sum(C1:C200)"
x = x + 1
Loop

Jason Zischke

"Jim May" wrote:

On Sheet1 (activesheet) I have numbers in Range B1:C200.

In the immediate window I've entered:

Activesheet.Range("A:A").Formula = (Range("B1:B200") * Range("C1:C200"))

When I press enter I get a run-time error 13, type mismatch
Noting gets into Col A (which shoud be the product of
B * C (according to each row.

What am I doing wrong?






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default What am I doing wrong, here?

After a good nights sleep I tried:
activesheet.range("A:A").formula = "=b1*c1"

That's Cool......


"Jim May" wrote in message
news:zsaJf.4713$Tf3.3542@dukeread09...
On Sheet1 (activesheet) I have numbers in Range B1:C200.

In the immediate window I've entered:

Activesheet.Range("A:A").Formula = (Range("B1:B200") * Range("C1:C200"))

When I press enter I get a run-time error 13, type mismatch
Noting gets into Col A (which shoud be the product of
B * C (according to each row.

What am I doing wrong?







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
what is the wrong? rajaiy Excel Worksheet Functions 0 July 27th 09 11:45 AM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
wHAT AM i DOING wrong DMB Excel Worksheet Functions 3 December 27th 05 05:41 PM
Am I doing something wrong here? TyeJae[_21_] Excel Programming 2 June 29th 04 12:56 AM
Where am I going wrong with this? [email protected] Excel Programming 1 May 25th 04 05:04 PM


All times are GMT +1. The time now is 01:54 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"