How to prevent users from accessing Visual Basic Editor (VBE) for Microsoft Office applications?

If you want to prevent users from accessing Visual Basic Editor (VBE) on any PC / Workstation after you’ve installed Microsoft Office package (as there are certainly other ways to do it while installation), here’s the easiest way of doing this: It is already mentioned over the link I shared above and I’m sharing it … Read more

“object does not contain a definition for get_Range” in Excel C#

Error: ‘object’ does not contain a definition for ‘get_Range’ Line of Code: Excel.Range¬†header¬†=¬†wks.get_Range(wks.Cells[1,¬†1],¬†wks.Cells[1,¬†10]); Solution: Cast the cells as “object” in get_Range() Excel.Range¬†header¬†=¬†wks.get_Range((object)wks.Cells[1,¬†1],(object)¬†wks.Cells[1,¬†10]); Thanks!