How can I always select yes automatically

%3CLINGO-SUB%20id%3D%22lingo-sub-2491250%22%20slang%3D%22zh-CN%22%3EHow%20can%20I%20always%20select%20yes%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2491250%22%20slang%3D%22zh-CN%22%3E%3CP%3EAs%20title%2C%20it%20comes%20up%20every%20time%20when%20I%20was%20running%20VBA.%20Is%20there%20any%20solution%20to%20fix%20it%20or%20jump%20the%20msgbox%3F%20I%20want%20it%20always%20Yes%20(determine)%20for%20all%20excel%20files.%20%3CBR%20%2F%3E%20Sorry%20about%20the%20picture%2C%20language%20version%20problem%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lADPBFDk_FG_48bNAj7NBGU_1125_574.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291846i67EDFD4FA7544DF2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lADPBFDk_FG_48bNAj7NBGU_1125_574.jpg%22%20alt%3D%22lADPBFDk_FG_48bNAj7NBGU_1125_574.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lADPBE1XfazYMybNAtDNBQA_1280_720.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291847i3F90A5365F838671%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22lADPBE1XfazYMybNAtDNBQA_1280_720.jpg%22%20alt%3D%22lADPBE1XfazYMybNAtDNBQA_1280_720.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2491250%22%20slang%3D%22zh-CN%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2491600%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20always%20select%20yes%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2491600%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1089503%22%20target%3D%22_blank%22%3E%40RowingCatP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETry%20adding%20a%20line%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EApplication.DisplayAlerts%20%3D%20False%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eat%20the%20beginning%20of%20the%20macro%2C%20and%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EApplication.DisplayAlerts%20%3D%20True%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eat%20the%20end%20of%20the%20macro.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2491677%22%20slang%3D%22zh-CN%22%3ERe%3A%20How%20can%20I%20always%20select%20yes%20automatically%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2491677%22%20slang%3D%22zh-CN%22%3EI%20have%20written%20this%20function%20in%20my%20code%20but%20still%20jump%20the%20msgbox.%20%3CBR%20%2F%3E%20Need%20more%20help%3C%2FLINGO-BODY%3E
New Contributor

As title, it comes up every time when I was running VBA. Is there any solution to fix it or jump the msgbox? I want it always Yes (determine) for all excel files.
Sorry about the picture, language version problem

lADPBFDk_FG_48bNAj7NBGU_1125_574.jpglADPBE1XfazYMybNAtDNBQA_1280_720.jpg

2 Replies

@RowingCatP 

Try adding a line

 

Application.DisplayAlerts = False

 

at the beginning of the macro, and

 

Application.DisplayAlerts = True

 

at the end of the macro.

I have written this function in my code but still jump the msgbox.
Need more help