Compiler Error: User-defined types not defined
I get the compile-time error "User-defined types not defined" on this line: Dim cn As ADODB.Connection` What could be wrong? Code: Sub test() Dim…
136 expert-verified Q&A posts in this category, sourced from the top-voted answers on Stack Overflow.
I get the compile-time error "User-defined types not defined" on this line: Dim cn As ADODB.Connection` What could be wrong? Code: Sub test() Dim…
How to check from .net code whether "Trust access to the VBA project object model" is enabled or not for an Excel application? Manually…
I'm detecting changes in the values of certain cells in an Excel spreadsheet like this... Private Sub Worksheet_Change(ByVal Target As Range) Dim cell As…
I spent a VERY long time today looking up a method to alternate row colors within a specified range. There really isn't a lot…
I am trying to develop a user form in Excel 2007 VBA and want to provide a user with a range selection icon, something…
after 10 years of programming I find myself with the daunting task of creating my first Excel application in Excel 2007. I have programmed…
Would it be wrong if write the following code Sub Something() Dim i As integer Dim xRange As Range Dim yRange As Range Set…
For example I have class A which implements class B ---class A---- implements B public sub B_do() end sub --class B---- public sub do()…
I am looking to programmatically freeze the top row of an Excel worksheet from VBA. The end goal is to produce the same effect…
I have a long list of names that I need to have quotes around (it can be double or single quotes) and I have…