ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can not write string to a cell (https://www.excelbanter.com/excel-programming/301911-can-not-write-string-cell.html)

wmauss[_3_]

Can not write string to a cell
 
Hello everybody,

I want to do a really simple thing and just can't accomplish it.
I just want to write a string into a cell using VBA.

A simplified version of the vba code looks like this:

Sub Testing()
Application.Volatile
'Cells(1,2).Item="Geht nicht"
Range("A1").Value="Geht auch nicht"
End Sub

If I step through it in Debug mode, it terminates when executing th
Cells... or Range... line.

Looking at the simplicity, it has got to be some fundamental principl
that I don't get. :(
I appreciate your help!

Werne

--
Message posted from http://www.ExcelForum.com


mangesh_yadav[_20_]

Can not write string to a cell
 
There doesn't seem to be any problem with your code. It works perfectl
fine when i tried it.

- Manges

--
Message posted from http://www.ExcelForum.com


wmauss[_4_]

Can not write string to a cell
 
Hi Mangesh,

thanks for trying it!
I could confirm it meanwhile. I don't know what was causing the troubl
earlier.

Werne

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com