Mohamedazees
New Member
- Joined
- Oct 18, 2020
- Messages
- 46
- Office Version
- 2019
- Platform
- Windows
Dear Sir,
I am Using Excel 2019 32 Bit version when I am running the below Code I got the error " Compile error in hidden module"
Since my VBA project is protected" I Need the resolution for this problem, Thanks is advance for your valuable Support.
The VBA code is: ( In Thisworkbook)
Private Sub Workbook_Open()
If IsEmpty(Sheet1.Range("XAM1").Value) = True Then
Range("XAM1").Value = Date
Dim Edate As Date
Edate = DateValue(Range("XAM1")) + 2
If Date > Edate Then
MsgBox " You Must Purchase to Reactivate the File.", vbExclamation, "Contact @ md71076@gmail.com or Dial +91 8015970306"
Application.DisplayAlerts = False
ThisWorkbook.Close
Application.DisplayAlerts = True
Application.Quit
Else
MsgBox " You Can Use this Trail Version for " & Edate - Date & "Day(s)", vbInformation, "Thanks for your Support"
End If
End Sub
I am Using Excel 2019 32 Bit version when I am running the below Code I got the error " Compile error in hidden module"
Since my VBA project is protected" I Need the resolution for this problem, Thanks is advance for your valuable Support.
The VBA code is: ( In Thisworkbook)
Private Sub Workbook_Open()
If IsEmpty(Sheet1.Range("XAM1").Value) = True Then
Range("XAM1").Value = Date
Dim Edate As Date
Edate = DateValue(Range("XAM1")) + 2
If Date > Edate Then
MsgBox " You Must Purchase to Reactivate the File.", vbExclamation, "Contact @ md71076@gmail.com or Dial +91 8015970306"
Application.DisplayAlerts = False
ThisWorkbook.Close
Application.DisplayAlerts = True
Application.Quit
Else
MsgBox " You Can Use this Trail Version for " & Edate - Date & "Day(s)", vbInformation, "Thanks for your Support"
End If
End Sub