excel vba - VBA auto-complete / suggestion -
typing 'activesheet.' not bring list of suggestions whereas other classes will. how bring autosuggestion screen in coding screen typing?
in excel, typing activesheet
invoking property of default object, excel.application . if working in access (based on tags), default object access.application, doesn't have activesheet property. instead, access, see activesheet
undimensioned variant variable. intellisense seek, must:
- have reference excel library
- declare variable of type excel.application
- type dot after variable's name , you'll see activesheet in intellisense
or (from @dee)
dim somesheet worksheet 'as excel.worksheet in access set somesheet = activesheet 'as excel.activesheet in access 'use somesheet, there have intellisense
if type option explicit
@ top of module, you'll helpful compile error when refer doesn't exist or mis-spelled, instead of accidentally declaring new variable.
Comments
Post a Comment