Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default application defined error

Hi

I am trying to put value in a cell..which is a sum of 3
cells of 3 sheets
Here is my statement:
Cells(gfRowMain, rngGfOne.Column + Mloop).value= "=" &
finMatchVar
i have also tried :
ActiveCell.FormulaR1C1 = "=" & finMatchVar
in both cases i am getting object defined error.

I get finMatchVar variable as following on printing it:
'[Copy of Actual_Underutilisation_Assembly_0404.xls]
summary 0304'!R34C3+'[Underutilisation_Assembly_0405.xls]
Sum May'04'!R32C3+'[Underutilisation_Assembly_0405.xls]Sum
May'04'!R32C3

what mistake i am doing?
thanks a lot in advance
Monika
  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default application defined error-pls ignore this


-----Original Message-----
Hi

I am trying to put value in a cell..which is a sum of 3
cells of 3 sheets
Here is my statement:
Cells(gfRowMain, rngGfOne.Column + Mloop).value= "=" &
finMatchVar
i have also tried :
ActiveCell.FormulaR1C1 = "=" & finMatchVar
in both cases i am getting object defined error.

I get finMatchVar variable as following on printing it:
'[Copy of Actual_Underutilisation_Assembly_0404.xls]
summary 0304'!R34C3+'[Underutilisation_Assembly_0405.xls]
Sum May'04'!R32C3+'[Underutilisation_Assembly_0405.xls]

Sum
May'04'!R32C3

what mistake i am doing?
thanks a lot in advance
Monika
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default application defined error

Monika,

Assuming that all the variables are valid values, all you need is

Cells(gfRowMain, rngGfOne.Column + Mloop).value = finMatchVar

put some debug statements in and see what you get for all of the variables.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...
Hi

I am trying to put value in a cell..which is a sum of 3
cells of 3 sheets
Here is my statement:
Cells(gfRowMain, rngGfOne.Column + Mloop).value= "=" &
finMatchVar
i have also tried :
ActiveCell.FormulaR1C1 = "=" & finMatchVar
in both cases i am getting object defined error.

I get finMatchVar variable as following on printing it:
'[Copy of Actual_Underutilisation_Assembly_0404.xls]
summary 0304'!R34C3+'[Underutilisation_Assembly_0405.xls]
Sum May'04'!R32C3+'[Underutilisation_Assembly_0405.xls]Sum
May'04'!R32C3

what mistake i am doing?
thanks a lot in advance
Monika



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
Run-time error '50290': Application-defined or object-defined erro Macro button Excel Discussion (Misc queries) 1 March 12th 09 10:59 AM
Macro error : Application-defined or object-defined error Joe Excel Discussion (Misc queries) 3 January 27th 06 02:32 PM
Application-defined or object-defined error Sharon[_5_] Excel Programming 2 October 24th 03 03:49 PM
Runtime Error 1004 -- Application Defined or Object Defined Error John[_51_] Excel Programming 3 September 4th 03 04:28 PM
VBA - Application-defined or object-defined error tina salgia Excel Programming 0 August 24th 03 10:35 PM


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