tried to change cells from VBA with:
worksheets("sheet1").cells(10,"A")
statement does not execute. Just aborts
tried to change cells from VBA with:
worksheets("sheet1").cells(10,"A")
statement does not execute. Just aborts
You need to assign a value. Change your codee to Worksheets("Sheet1").cells(10, "A").value = "XYZ"
sorry I meant
worksheets("sheet1").cells(10,"A")="OK"
Works for me.
The entire code is:
Public Function Test() as String
worksheets("sheet1").cells(10,"A").value="OK"
Test="OK"
End Function
When type =test() into a cell and hit return it puts #Value in that cell and nothing in cell A10.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks