excel-2000

Forcing Garbage Collection

匆匆过客 提交于 2020-01-12 16:09:53
问题 Is there a way to force garbage collection in VBA/Excel 2000? This question refers to the Macro language in Excel. Not using VB .NET to manipulate Excel. So GC.collect() won't work 回答1: You cannot take advantage of garbage collection provided by the .NET Framework when using straight VBA. Perhaps this article by Eric Lippert will be helpful 回答2: You can't force GC in VBA, but it's good to set to Nothing the global variables. The article mentioned by kd7 says it's useless to set to Nothing the

Forcing Garbage Collection

我怕爱的太早我们不能终老 提交于 2020-01-12 16:08:11
问题 Is there a way to force garbage collection in VBA/Excel 2000? This question refers to the Macro language in Excel. Not using VB .NET to manipulate Excel. So GC.collect() won't work 回答1: You cannot take advantage of garbage collection provided by the .NET Framework when using straight VBA. Perhaps this article by Eric Lippert will be helpful 回答2: You can't force GC in VBA, but it's good to set to Nothing the global variables. The article mentioned by kd7 says it's useless to set to Nothing the

Predict text wrapping in cell

浪子不回头ぞ 提交于 2019-12-23 05:38:09
问题 The problem: I use VBA to populate MS Excel 2000 cells with text. The column has a fixed width (should not be changed due to layout) and the wordwrap property is set to true so the text wraps over multiple lines if wider than the column. Unfortunately, the row-height do not always get updated accordingly. I need a way to predict if the text wraps over multiple lines so I can "manually" adjust the height. I want to do something like this: range("A1").value = longText range("A1").EntireRow

Opening semicolon delimited CSV file

家住魔仙堡 提交于 2019-11-29 07:22:12
How does one open a semicolon delimited CSV file with VBA in Excel 2000? Sample data An ID;TEST20090222 A Name;Firstname Surname A Date;11.05.2000 Country:;SomeCountryName Currency;EUR CostA; CostB; CostC; Part1;10;20;30 Part2;;;; Part3;34;56;87 Code In Excel 2003 11.8231.8221 SP3 with VBA 6.5.1025, I can open a semicolon delimited file with the following VBA code: Workbooks.OpenText filename:=myFilename, _ DataType:=xlDelimited, Semicolon:=True, Local:=True However, when the same code is run in Excel 2000 9.0.8961 SP1 with VBA 6.5.1025, I get the following error: Compile error: Named argument

Opening semicolon delimited CSV file

末鹿安然 提交于 2019-11-28 01:17:09
问题 How does one open a semicolon delimited CSV file with VBA in Excel 2000? Sample data An ID;TEST20090222 A Name;Firstname Surname A Date;11.05.2000 Country:;SomeCountryName Currency;EUR CostA; CostB; CostC; Part1;10;20;30 Part2;;;; Part3;34;56;87 Code In Excel 2003 11.8231.8221 SP3 with VBA 6.5.1025, I can open a semicolon delimited file with the following VBA code: Workbooks.OpenText filename:=myFilename, _ DataType:=xlDelimited, Semicolon:=True, Local:=True However, when the same code is run