2012年1月13日
摘要: Issue: While requesting an application hosted in IIS 7.0 from the IE, sometime we may get an error message which is not so helpful for us to diagnostic the problem. see screenshot below: Solution: ... 阅读全文
posted @ 2012-01-13 11:45 刘宁Toby 阅读(267) 评论(0) 推荐(0) 编辑
  2012年1月11日
摘要: 现象: OneNote 中无法输入中文. 解决: C:\Users\“你的用户名”\AppData\Local\Microsoft\Office下有个OneNote.officeUI的文件,删除 阅读全文
posted @ 2012-01-11 21:51 刘宁Toby 阅读(2819) 评论(0) 推荐(0) 编辑
摘要: 现象:spell checking in office 2010 will not work if your office 2010 was upgraded from office 2003. 原因:This is caused by a register item of office 2003. you should delete it manually. the item is locat... 阅读全文
posted @ 2012-01-11 16:49 刘宁Toby 阅读(159) 评论(0) 推荐(0) 编辑
  2010年7月30日
摘要:   出处:http://gaizai.cnblogs.com/ 阅读全文
posted @ 2010-07-30 14:36 刘宁Toby 阅读(209) 评论(0) 推荐(0) 编辑
  2010年6月28日
摘要: Columns("A:A").Columns.AutoFit 阅读全文
posted @ 2010-06-28 17:34 刘宁Toby 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 'Sort Group, SubGroup, Project Worksheets("Groups").Activate Range("B3:Z65536").Select Selection.Sort Key1:=Range("I3"), Order1:=xlAscending, Header:=xlNo, _   ... 阅读全文
posted @ 2010-06-28 17:33 刘宁Toby 阅读(280) 评论(0) 推荐(0) 编辑
  2010年6月1日
摘要: Blank Subject Warning for Outlook 2007 – CodeProject   Introduction Nowadays, in the professional world, Outlook is most popularly used as the email client. The subject line is a very importan... 阅读全文
posted @ 2010-06-01 14:14 刘宁Toby 阅读(330) 评论(0) 推荐(0) 编辑
  2010年5月26日
摘要: Sub SelectAllGroupsClick() Application.EnableEvents = False Application.ScreenUpdating = False Application.Calculation = xlCalculationManual ActiveSheet.Unprotect Dim i i = 0 For Each oCheck In Active... 阅读全文
posted @ 2010-05-26 20:03 刘宁Toby 阅读(361) 评论(0) 推荐(0) 编辑
  2010年5月24日
摘要:   [DllImport("User32.dll", CharSet = CharSet.Auto)]   public static extern int GetWindowThreadProcessId(IntPtr hwnd, out int ID);   public static void shutExcel(Excel.Applicat... 阅读全文
posted @ 2010-05-24 17:33 刘宁Toby 阅读(272) 评论(0) 推荐(0) 编辑
  2010年5月20日
摘要: 1.1.1. The initial default directory is the user's temp directory. After the first time any file is opened or saved, the default directory will be whichever directory was last used. this.openFileDial... 阅读全文
posted @ 2010-05-20 12:04 刘宁Toby 阅读(171) 评论(0) 推荐(1) 编辑
  2010年5月17日
摘要: Sometime we can get ..\bin\Debug by using Environment.CurrentDirectory or System.Windows.Forms.Application.StartupPath. So what’s the difference? I suggest that you use System.Windows.Forms.App... 阅读全文
posted @ 2010-05-17 15:40 刘宁Toby 阅读(379) 评论(0) 推荐(0) 编辑
  2010年5月14日
摘要: 如果我想在代码里频繁使用一段代码,比如说在调试的时候我经常会用到: System.Diagnostics.Debug.WriteLine("Method" + "Start" + DateTime.Now.ToString("yyyy-MM-dd:hh-mm-ss-fff")); 如果每次手动会很枯燥并且降低开发效率。考虑到VS有代码... 阅读全文
posted @ 2010-05-14 14:44 刘宁Toby 阅读(228) 评论(0) 推荐(1) 编辑
  2010年5月12日
摘要: Function GetColumnLetterByColumnNumber(ColumnNumber As Integer) As String   If ColumnNumber > 26 Then     ' 1st character:  Subtract 1 to map the characters to 0-25,  ... 阅读全文
posted @ 2010-05-12 17:55 刘宁Toby 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 处理大数据量时,为了更快的运行,VBA通常在开始加两句 Application.ScreenUpdating = False Application.Calculation = xlCalculationManual 结尾处再恢复 Application.Calculation = xlCalculationAutomatic Application.ScreenUpdating = True c... 阅读全文
posted @ 2010-05-12 16:25 刘宁Toby 阅读(846) 评论(0) 推荐(0) 编辑
  2010年5月7日
摘要: Function Tidy(ByRef sheets() As Worksheet)Dim value As ObjectDim rang As Excel.RangeDim isNum As BooleanDim sheet As WorksheetFor k = 0 To UBound(sheets) '获取数组长度Set sheet = sheets(k) 阅读全文
posted @ 2010-05-07 17:19 刘宁Toby 阅读(2159) 评论(0) 推荐(0) 编辑
  2010年5月6日
摘要: 在性能调优的过程中,经常要计算一个方法执行的时间,我们可以在方法前后加上如下一句:Debug.WriteLine("Method" + "Start" + DateTime.Now.ToString("yyyy-MM-dd:hh-mm-ss-fff"));Method();Debug.WriteLine("Method" + "End" + DateTime.Now.ToString("yyyy-... 阅读全文
posted @ 2010-05-06 17:30 刘宁Toby 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">2... 阅读全文
posted @ 2010-05-06 12:06 刘宁Toby 阅读(164) 评论(0) 推荐(0) 编辑
  2010年5月5日
摘要: 在vs中编辑代码过程中,可以通过快捷键 Ctrl+W+W快速切换到ie。 阅读全文
posted @ 2010-05-05 22:08 刘宁Toby 阅读(130) 评论(0) 推荐(0) 编辑
  2010年4月29日
摘要: To create a performance session for an open projectOn the Tools menu, point to Performance Tools, and then click Performance Wizard.From the Which of the following available targets would you like to ... 阅读全文
posted @ 2010-04-29 13:22 刘宁Toby 阅读(316) 评论(0) 推荐(0) 编辑
  2010年4月28日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1.Try using arrays insteadArrays will generally be more efficient in terms of access speed and memory ... 阅读全文
posted @ 2010-04-28 17:16 刘宁Toby 阅读(271) 评论(0) 推荐(0) 编辑