Vba in Excel completely ignores selections -


so one, when run example following code:

activesheet.cells(5, 4).select activecell.value = "test" 

which literally copied http://support.microsoft.com/kb/291308 (the first line anyway). when activesheet.cells(5,4).value = "test" work, point selection doesn't work.

i mean, might massively sucking here, have no clue, idea?

edit: usefull add this, result writes test in cell had selected before pressed button code attached to. hence me claiming ignores select.

edit2: bit of excel code runs fine on computer doesn't run on 1 due excel skippin select part.

since comment provided workaround problem, decided more research escalate answer.

the msdn website mentions following .enableselection property:

"this property takes effect when worksheet protected: xlnoselection prevents selection on sheet, xlunlockedcells allows cells locked property false selected, , xlnorestrictions allows cell selected."

since activesheet.enableselection = xlnorestrictions worked in sheet, there nothing else conclude other sheet protected. why worksheet protected, cannot know, add-in triggers kind of protection, @s nash mentioned in answer. (and of course open listen other opinions/suggestions).

you can try remove add-ins (see this article) , restart excel , see if problem persists (and if can, please post if add-in caused problem, interesting everyone!)


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -