LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Error writing value to cell - continued

I have a continuing perplexing problem. Using Excel 2000, I created a
test routine, in a module in Personal.xls:

Sub TestAssign()
ActiveSheet.Cells(17, 10).Value = "TT"
End Sub

When I run it in my currently open spreadsheet, it changes the value
of cell J17 to "TT" and the subroutine finishes normally. That's as
expected.

I have another routine, a function defined in a module in the
spreadsheet. It includes the same statement:

ActiveSheet.Cells(17, 10).Value = "UU"

There is a breakpoint on this line. Before execution, the arguments
have the values 17 and 10, same as above. When I press F8 to execute
that step, execution does NOT continue to the same line. Nothing
changes in the active sheet (there is only one sheet in the file.)
There's no error, it just stops.

The only thing that seems to be different is that the assignment to
..Value works if the function is stored in a module in Personal.xls,
and does NOT work if the function is in a module in the current
spreadsheet.

Is this some sort of bug in VB?



--
Steven M - lid
(remove wax and invalid to reply)

A fool and his money are soon elected. -- Will Rogers
 
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
Error writing value to cell Steven M (remove wax and invalid to reply) Excel Programming 10 April 10th 06 02:24 PM
Cell to Show "Continued" only if > Page 1 Steve Klenner Excel Worksheet Functions 1 April 24th 05 06:15 AM
Error 50290: Error writing to Worksheet while using an ActiveX Control emblair3 Excel Programming 3 February 24th 04 06:03 PM
Continued Cell Formulas Across an ODBC jonathan Excel Programming 1 January 16th 04 05:19 PM
Cell Formatting - Continued Steve[_47_] Excel Programming 2 November 3rd 03 04:20 PM


All times are GMT +1. The time now is 05:08 AM.

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"