View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
mike mike is offline
external usenet poster
 
Posts: 32
Default Problem running macros in Excel filenames containing special characters like []

I had a similar problem that appeared whenever the workbook was
renamed. I resolved this by assigning the macro within Visual Basic as
in the following snippet:


CommandBars("toolbar_name").Controls("Btn_Name").O nAction = _
ThisWorkbook.Name & "!macro_name"