Compile error in hidden module

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello JohnnyL
The application Match Portal is running perfect in every way. Today I visited a new office and tested to run Match Portal application. But I ran into this error for the first time. What could be the reason and how do I rectify it to make it compatible to run in all versions of excel.?
Compile error in hidden module Match Portal
This error commonly occurs when code is incompatible with the version, platform or architecture of this application.
 
I only scanned the code quickly, so have no idea if anything else needs changing. Best way to find out is to try it.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I only scanned the code quickly, so have no idea if anything else needs changing. Best way to find out is to try it.
Ok. Thanks Fluff. Will check it out tomorrow and revert back.
 
Upvote 0
I can't confirm that 'add2' causes an issue with 2007 32bit or 2013 32bit.

I can confirm that:
VBA Code:
        .Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula

does cause an issue in 2007 32bit & 2013 32bit, specifically the ', FormulaVersion:=xlReplaceFormula' portion. ;)
 
Upvote 0
You will need to change the Add2 to Add on these rows & anywhere else they occur
I can see where this could cause a runtime issue but could it cause a compile error as reported in post #1?
 
Upvote 0
what and how do I edit that line.?

Comment out the portion I mentioned or delete it.

Make it be:
VBA Code:
        .Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False                                                                                     ' , FormulaVersion:=xlReplaceFormula

Or just:
VBA Code:
        .Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False
 
Upvote 0
I can see where this could cause a runtime issue but could it cause a compile error as reported in post #1?
I have no idea & as I only have 365 I have no way to test it.
Also I have never encountered the "Compile error in hidden module" error.
 
Upvote 0
Comment out the portion I mentioned or delete it.

Make it be:
VBA Code:
        .Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False                                                                                     ' , FormulaVersion:=xlReplaceFormula

Or just:
VBA Code:
        .Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False
Rich (BB code):
.Columns("G:I").Replace What:="0", Replacement:="", LookAt:=xlWhole, _
            SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _
            ReplaceFormat:=False
            'FormulaVersion:=xlReplaceFormula
Like this OK.?
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top