Rat - sorry to have been a while - other things. I put your code into the programme as you gave in given in Listenerforcolumns.ods
Sub StartModifyListeners
Dim oSheet as Object
Dim Cellpos(5)
Cellpos(0)=“A8:A260”
Cellpos(1)=“F8:F260”
Cellpos(2)=“G8:G260”
Cellpos(3)=“K8:K260”
Cellpos(4)=“N8:N260”
oSheet = ThisComponent.Sheets.getByIndex(0) 'get leftmost sheet
Dim a as Integer
for a = 0 to 4
CellRng(a) = oSheet.getCellrangeByName(Cellpos(a))
vChangeListener(a) = createUnoListener(“Modify_”,“com.sun.star.util.XModifyListener”) 'create a listener
CellRng(a).addModifyListener(vChangeListener(a)) 'register the listener
next a
End Sub
Sub StopModifyListeners
Dim a as Integer
for a = 0 to 4
CellRng(a).removeModifyListener(vChangeListener(a))
Next a
End Sub
Sub Modify_modified(oEvent)
oColumns = oEvent.Source.getColumns()
oElementNames = oColumns.getElementNames()
sColumn = oElementNames(0)
msgbox "Something Changed - Column " & sColumn
End Sub
Sub Modify_disposing(oEvent)
End Sub
Running your code I still get
A Scripting Framework error occurred while running the Basic script vnd.sun.star.script:Standard.Module1.RmvListener?
language=Basic&location=document.
Message: The following Basic script could not be found:
library: ‘Standard’
module: ‘Module1’
method: ‘RmvListener’
location: ‘document’
??