Hello all of you,
I have some problem in setting cells values (or fromat or...) in my Excel spreadsheet using a VB statement like within my Module:
Range("C1").Val ue = 20
I have this in a function. If I am in debug mode and have a breakpoint at this line, I can see when hovering my mouse over "Range("C1").Va lue" the actual value in that cell (in my case 30), but when I want to step to the next statement, the VB programs ends (due to some error?).
The cell value is not changed to 20.
Can someone help me? I tried several other methods to change cells, like Range(AtmosProf ile).Cells(1, 3).Value = 2 * 5
but also this does not work...
Do I need to declare in my Visual BASIC module that I allow the setting of cells in the spreadsheet (I don't have protection on in my worksheet).
I am using Microsoft Visual BASIC 6.0 within Microsoft Excel 2000
Thanks for the help.
All the best,
Victor
I have some problem in setting cells values (or fromat or...) in my Excel spreadsheet using a VB statement like within my Module:
Range("C1").Val ue = 20
I have this in a function. If I am in debug mode and have a breakpoint at this line, I can see when hovering my mouse over "Range("C1").Va lue" the actual value in that cell (in my case 30), but when I want to step to the next statement, the VB programs ends (due to some error?).
The cell value is not changed to 20.
Can someone help me? I tried several other methods to change cells, like Range(AtmosProf ile).Cells(1, 3).Value = 2 * 5
but also this does not work...
Do I need to declare in my Visual BASIC module that I allow the setting of cells in the spreadsheet (I don't have protection on in my worksheet).
I am using Microsoft Visual BASIC 6.0 within Microsoft Excel 2000
Thanks for the help.
All the best,
Victor
Comment