• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sheet get disabled by userform excel 2013

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 -

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
 
Hi ,

I am not sure what you mean , but try changing the keyword vbModal to vbModeless.

Narayan
hi,

I have a workbook which contains multiple sheets. Sheet1 activates another sheet and then after activation a user form is loaded. At that point the sheet gets hidden and sheet1 is shown.

I have tried vbModeless and application.screenupdating = true (and false)
but they are not working.

Please help.
 
Hi ,

Please upload your complete workbook with the data , forms and code in it , and then explain the problem.

Narayan
 
Back
Top