Excel Doesn't Complete Macro after Opening Another Workbook

前端 未结 5 1100
既然无缘
既然无缘 2021-01-17 11:02

I\'m trying to get VBA to fire the commands

sImportFilePath = Application.GetOpenFilename(FileFilter:= _
\"Excel Files (*.xls), *.xls\", Title:=\"Choose The          


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-17 11:36

    A simple workaround that did it for me is to assign the VBA to a shortcut key without a shift. I'm not a big fan of doing so because there are many more conflicts with dafault Excel shortcuts. But there's a few available as of Excel 2010 based on this article: Ctrl+e, Ctrl+j, Ctrl+m, Ctrl+q.

提交回复
热议问题