VinayKumar15
New Member
Hi all,
I have a code which activates a specific sheet and after activation a user form pops up.
Problem is when the user form pops up it disables the activated sheet which is not required.
Please suggest me how to achieve this. The code is -
I have a code which activates a specific sheet and after activation a user form pops up.
Problem is when the user form pops up it disables the activated sheet which is not required.
Please suggest me how to achieve this. The code is -
Code:
Private Sub cmdOk_Click()
On Error GoTo ERROR:
Dim strData As String
strData = CBO_FORMAT.Text
If strData = "STANDARD TEMPLATE" Then
ThisWorkbook.iTempType = 0
Excel.Application.Workbooks.Open (ThisWorkbook.sAppPath & "\StdTemplate.xltx")
Set ThisWorkbook.myobject.xlAppSTD = Excel.Application
ThisWorkbook.myobject.xlAppSTD.Visible = True
ThisWorkbook.myobject.xlAppSTD.ActiveWorkbook.Activate
ActiveWorkbook.Sheets("Report").Activate
TemplateMEnu.AddTemplateMenus
FrmUserFormat.Hide
FrmReportSelect.Show vbModal