Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want my VBA program to change the value of a cell. The cell
references are correct but the "write" or assignment step doesn't work. As a test, this line returns the correct cell location: A = Worksheets("Sheet1").Cells(myLocRow(i) + Offset_Row, myLocCol(i) + Offset_Col).Address After the following test statement, variable A contains the current value of the cell: A = Worksheets("Sheet1").Cells(myLocRow(i) + Offset_Row, myLocCol(i) + Offset_Col).Value However, if I replace it with this step, something does not work right: Worksheets("Sheet1").Cells(myLocRow(i) + Offset_Row, myLocCol(i) + Offset_Col).Value = "Test" I added a temporary Stop statement immediately after the line above. However, if I single-step through the above line, it does not reach the Stop statement. Instead, excecution jumps to another step before the assignment. HELP! I have no idea what to do next. -- Steven M - lid (remove wax and invalid to reply) A fool and his money are soon elected. -- Will Rogers |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error type mismatch in writing macro | Excel Worksheet Functions | |||
Issue writing IF OR Error Formula Types | New Users to Excel | |||
Error from losing power while writing macro. Recovery help? | Excel Discussion (Misc queries) | |||
Writing a macro to copy first cell down until next cell has data | Excel Programming | |||
Error 50290: Error writing to Worksheet while using an ActiveX Control | Excel Programming |