我有一份使用某种类型的工作手册,请打电话给它,该手册载于我的参考资料中定义的一个单元(DL)。
我制定了一些在《工作手册》(Open())中呼吁的法典,如果它没有列入参考文件清单的话,将添加提及《反歧视法》的内容。 因此,我可以向某人提供工作手册,而他们却不得不手提。
我的问题是,当我在《工作手册》执行之前(并且可以确定保留)开放《工作手册》时,我就被扔进了不定的T类的空洞中,没有界定。 绝无dding。
这似乎只是一个小的鸡蛋。 前面有人看到这一点吗? 你们是如何固定的?
我有一份使用某种类型的工作手册,请打电话给它,该手册载于我的参考资料中定义的一个单元(DL)。
我制定了一些在《工作手册》(Open())中呼吁的法典,如果它没有列入参考文件清单的话,将添加提及《反歧视法》的内容。 因此,我可以向某人提供工作手册,而他们却不得不手提。
我的问题是,当我在《工作手册》执行之前(并且可以确定保留)开放《工作手册》时,我就被扔进了不定的T类的空洞中,没有界定。 绝无dding。
这似乎只是一个小的鸡蛋。 前面有人看到这一点吗? 你们是如何固定的?
与其他人一样,如果你在<代码>Workbook_Open之前不增加对《刑法》的提及,那么你必须使用过时的约束力来连接《刑法》中的 st脚。
然而,我认为你正以这种错误的方式对待。 在<代码>Workbook_Open中不提及DL,而是已经参考并核对了<代码>。 IsBroken. 然后,你可以制定法典,来做确定被打破的参照点所需要的一切。
这有利于早期约束,而如果对《刑法》的提及被打破,你就没有获得同样的汇编错误。
NOTE: You can still get compile errors, but they won t be for the missing DLL. While you have a broken reference, any use of functions from the VBA Strings
module will trigger a compile error if the function isn t prefaced with Strings.
For example, the following code will cause a compiler error before Workbook_Open
runs if you have any broken references.
Private Sub Workbook_Open()
Dim r As Reference
For Each r In ThisWorkbook.VBProject.References
If r.IsBroken Then
MsgBox "Found broken reference." & vbCrLf _
& Mid(r.FullPath, InStrRev(r.FullPath, "") + 1)
End If
Next r
End Sub
编号:Mid
和InStrRev
,。
MsgBox "Found broken reference." & vbCrLf _
& Strings.Mid(r.FullPath, Strings.InStrRev(r.FullPath, "") + 1)
For an Excel formula I need the first cell out of a list of cells which contains a numeric value: A | B | C | ... | Z | ----------------------------- | 0.1 | 0.4 | ... | =0.1 | | ...
I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...
The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...
I m using Application run to call several macros in order like this. Sub Run_All_Macros() Application.Run ("Macro_1") Application.Run ("Macro_1") End Sub When I start Run_All_Macros, all the ...
Does anyone know how to convert an Excel date to a correct Unix timestamp?
I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...
I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...
I have created an Add-In in C# that implements user defined functions for Excel. These UDF s return immediately, but they control background asynchronous procedures. These procedures have status ...