Thursday, November 21

Close Open Workbook With VBA

INTRODUCTION: Workbook Is A Part Of Application. Worksheets Is A Part Of Workbook.

  1. Open Excel File
  2. Click Alt + F11 Or Click On Developer Tab And Go Visual Basic Application.
  3. One Dialog Screen Will Get Open
  4. Click Insert And Add Module
  5. Create Sub Procedure With Any Name
  6. Make Sure The Procedure Name Start With String And Without Space.
  7. Write The Code In Between Sub And Sub End
  8. Click Run Button Or Insert A Form Button In Excel Sheet
  9. Any Sub Procedure / Macro Can Be Assign To A Button Like This Example To Fire The Event On Clicking The Button.
  10. That’s It 🙂
  11. Please Check The Images And Video For More Info.
Insert Button
Insert Button

Leave a Reply

Your email address will not be published. Required fields are marked *