您好,欢迎来到中国最大的生活服务网站![登录][注册]

casethevariablenameal

thenenterthevariableasMyValuemixedcaseVBAchangesallotheroccurrencesofthe

variabletoMyValueAnexceptiontothisoccursifyoudeclarethevariablewithDimora

similarstatement;inthiswaysappearsasitwasdeclared

 

MDMwMDM0NTE2NDA=_1251762582360167.jpg

 

TheVBEditorscanstheinstructionforsyntaxerrorsIfitfindsanerroritchangesthe

colorofthelineandmaydisplayamessagedescribingtheproblemYoucansetvarious

optionsfortheVBEditorintheOptionsdialogboxaccessiblebychoosingToolsOptions

 

 

MDMwMDM0NTE2NDA=_1251762627514741.jpg

 

TipLikeExceltheVBEditorhasmultiplelevelsofUndoandRedoThereforeifyoufind

thatyoumistakenlydeletedaninstructionyoucanclicktheUndobuttonorpressCtrlZ

repeatedlyuntiltheinstructionreturnsAfterundoingtheactionyoucanchooseEditRedo

DeleteorclicktheRedoDeletetoolbarbuttontoredopreviouslyundonechanges

 

 

 

MDMwMDM0NTE2NDA=_1251762662399908.jpg

 

 

 

USINGTHEMACRORECORDER

AnotherwaytogetcodeintoaVBAmoduleistorecordyouractionsbyusingtheExcelmacro

recorderNomatterhowhardyoutryyoucannotrecordaFunctionprocedurethetypeof

procedurethatisusedforacustomwiorksehepetfunctionAllrecordedmacrosareSub

proceduresUsingthemacrorecordercanhelpyoutoidentifyvariouspropertiesthatyoucan

useinyourcustomfunctionsForexampleturnonthemacrorecordertorecordyouractions

whileyouchangetheusernameFollowthesestepsinExcel

 

ChooseDeveloperCodeRecordMacro

 

IntheRecordMacrodialogboxacceptthedefaultsettingsandclickOKtobeginrecording

TheRecordMacrobutton''scaptionchangestoStopRecording

 

ChooseExcelOptionsPopular

 

UnderthePersonalizeYourCopyofMicrosoftOfficeheadingchangethenameintheUserName

box

 

ClickOKtoclosetheExcelOptionsdialogbox

 

 

 

 

MDMwMDM0NTE2NDA=_1251762697703972.jpg

 

用户名: 请您登录后再发帖 
标 题: 标题请勿超过30个字
内 容:
 
  请阅读我们的[服务条款]
Copyright © 2009 Yahoo.com.cn 版权所有 不得转载 | 使用须知 | 著作权声明 | 京ICP证000022号 | 国家药监局(京)-经营性-2004-0039
全球阿里巴巴 - 阿里巴巴网络:中国站 国际站 日文站 | 淘宝站 | 支付宝 | 中国雅虎 | 口碑网 | 阿里软件 | 阿里妈妈