View Single Post
 
Old 08-04-2011, 12:38 PM
Arnold Arnold is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Aug 2011
Posts: 1
Arnold is on a distinguished road
Default Selection in VBA for Word for Mac 2011

Hello,

I'm currently learning VBA for word and I ran in something weird I don't mange to understand/solve: the "selection"word doesn't seem to be recognized in any macro I write, even the most simple one like

sub blabla()
selection.homekey unit:=wdstory
end sub


When I try and run it, I got the error message "error compile: expected function or variable" with the "selection" word being highlighted

I don't get what's going on there, if sb could help me with that, that would be much appreciated! :-)

Thanks!
Reply With Quote