Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000 - Excel 2003 now throws 'runtime error'

Hello - thanks for reading.
When I try to use a spreadsheet button someone design in Excel 2000, it
now throws an "Run-time error '1004': Application-defined or object-defined
error". I am copying the snipit of code that the debugger highlights as the
culprit... I have NO idea how to fix this, so some assistance would be
graciously appreciated!

<code
ActiveSheet.Range("C" & CStr(DestRow)) = "=UpdateScore(""" & ThisSheetName &
""",""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName &
"'!C" & CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
</code
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2000 - Excel 2003 now throws 'runtime error'

ThisSheetName = "thisSheetName"
Acell = "A1"
TotalRow = 20

? "=UpdateScore(""" & ThisSheetName & """,""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName & "'!C" &
CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
=UpdateScore("thisSheetName","AABB",'thisSheetName '!C20:IX20)

The statement appears to be syntactically correct. So problems could result
from the definition of any of the variable values

ThisSheetName
Acell
What is contained in Sheets("ThisSheetName").Range(ACell)
TotalRow
DestRow
The definition and existence of the function UpdateScore

You are the only one who can check those

--
Regards,
Tom Ogilvy

"Ralph L" <Ralph wrote in message
...
Hello - thanks for reading.
When I try to use a spreadsheet button someone design in Excel 2000, it
now throws an "Run-time error '1004': Application-defined or

object-defined
error". I am copying the snipit of code that the debugger highlights as

the
culprit... I have NO idea how to fix this, so some assistance would be
graciously appreciated!

<code
ActiveSheet.Range("C" & CStr(DestRow)) = "=UpdateScore(""" & ThisSheetName

&
""",""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName &
"'!C" & CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
</code



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000 - Excel 2003 now throws 'runtime error'

Tom/All,
This works flawlessly in Excel 2000 - and only breaks on my Excel 2003
installation. So my guess that the rest is correct... this is the reason
I've come to the community - I'm lost as to what's going on...

Thanks!

"Tom Ogilvy" wrote:

ThisSheetName = "thisSheetName"
Acell = "A1"
TotalRow = 20

? "=UpdateScore(""" & ThisSheetName & """,""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName & "'!C" &
CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
=UpdateScore("thisSheetName","AABB",'thisSheetName '!C20:IX20)

The statement appears to be syntactically correct. So problems could result
from the definition of any of the variable values

ThisSheetName
Acell
What is contained in Sheets("ThisSheetName").Range(ACell)
TotalRow
DestRow
The definition and existence of the function UpdateScore

You are the only one who can check those

--
Regards,
Tom Ogilvy

"Ralph L" <Ralph wrote in message
...
Hello - thanks for reading.
When I try to use a spreadsheet button someone design in Excel 2000, it
now throws an "Run-time error '1004': Application-defined or

object-defined
error". I am copying the snipit of code that the debugger highlights as

the
culprit... I have NO idea how to fix this, so some assistance would be
graciously appreciated!

<code
ActiveSheet.Range("C" & CStr(DestRow)) = "=UpdateScore(""" & ThisSheetName

&
""",""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName &
"'!C" & CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
</code




  #4   Report Post  
Posted to microsoft.public.excel.programming
Jen Jen is offline
external usenet poster
 
Posts: 119
Default Excel 2000 - Excel 2003 now throws 'runtime error'

what is "UpdateScore"? Is it maybe another macro stored in some other Excel
file that was not copied over to your new Excel 2003 file?

"Ralph L" wrote:

Tom/All,
This works flawlessly in Excel 2000 - and only breaks on my Excel 2003
installation. So my guess that the rest is correct... this is the reason
I've come to the community - I'm lost as to what's going on...

Thanks!

"Tom Ogilvy" wrote:

ThisSheetName = "thisSheetName"
Acell = "A1"
TotalRow = 20

? "=UpdateScore(""" & ThisSheetName & """,""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName & "'!C" &
CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
=UpdateScore("thisSheetName","AABB",'thisSheetName '!C20:IX20)

The statement appears to be syntactically correct. So problems could result
from the definition of any of the variable values

ThisSheetName
Acell
What is contained in Sheets("ThisSheetName").Range(ACell)
TotalRow
DestRow
The definition and existence of the function UpdateScore

You are the only one who can check those

--
Regards,
Tom Ogilvy

"Ralph L" <Ralph wrote in message
...
Hello - thanks for reading.
When I try to use a spreadsheet button someone design in Excel 2000, it
now throws an "Run-time error '1004': Application-defined or

object-defined
error". I am copying the snipit of code that the debugger highlights as

the
culprit... I have NO idea how to fix this, so some assistance would be
graciously appreciated!

<code
ActiveSheet.Range("C" & CStr(DestRow)) = "=UpdateScore(""" & ThisSheetName

&
""",""" & _
Sheets(ThisSheetName).Range(ACell) & """,'" & ThisSheetName &
"'!C" & CStr(TotalRow) & ":IX" & _
CStr(TotalRow) & ")"
</code




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
Excel 2003 Runtime Error M4Help Setting up and Configuration of Excel 0 March 13th 08 09:00 PM
Runtime error prevents Excel 2000 to save file gc Excel Worksheet Functions 2 January 25th 07 03:22 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM
Excel 2003 Help Runtime Error Weezay Excel Discussion (Misc queries) 1 January 27th 05 06:57 PM
Calling from C#.Net App Office._CommandBarButton.Execute() method in Excel 2003 throws a COMException Jacek Excel Programming 1 December 21st 03 03:48 PM


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