ExcelUser1988
New Member
I have written code in VBA Excel 2007.It is working fine in Excel 2010.But not in Excel 2013.
The problem I have found out is switching between the active workbooks.
My sequence of operation is as follows.
1.Open main workbook "report.xlsb"
2.It will pop up a form which takes user name and password.
3.After this one "Create " button on excel file "report.xlsb" will open.At the same time one excel template will also open named "stdTemplate2.xltm".I need to write data in this template.So I "Activate" this template.
4.After this one form will open to select the report type.Ideally my active workbook should be "stdTemplate2.xltm".But it goes to my previous workbook named "report.xlsb" and after this my code stops working in Excel 2013 which is working fine in Excel 2007.
Note:-I have written all the code in "report.xlsb".
Kindly support.
The problem I have found out is switching between the active workbooks.
My sequence of operation is as follows.
1.Open main workbook "report.xlsb"
2.It will pop up a form which takes user name and password.
3.After this one "Create " button on excel file "report.xlsb" will open.At the same time one excel template will also open named "stdTemplate2.xltm".I need to write data in this template.So I "Activate" this template.
4.After this one form will open to select the report type.Ideally my active workbook should be "stdTemplate2.xltm".But it goes to my previous workbook named "report.xlsb" and after this my code stops working in Excel 2013 which is working fine in Excel 2007.
Note:-I have written all the code in "report.xlsb".
Kindly support.