摘要: Public Sub SubtotalData() AppSettings 'On Error GoTo ErrHandler Dim StartTime, UsedTime As Variant StartTime = VBA.Timer 'Input code here Dim Wb As Workbook Dim Sht As Wo... 阅读全文
posted @ 2017-07-06 23:59 wangway 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Sub 跨表转置() Dim Wb As Workbook Dim Sht As Worksheet Dim oSht As Worksheet Dim Rng As Range Dim Index As Long Const HeadRow As Long = 12 Set Wb = Application.ThisWorkbook ... 阅读全文
posted @ 2017-07-06 23:56 wangway 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Sub mainProc() Application.ScreenUpdating = False Application.DisplayAlerts = wdAlertsNone 'Dim xlApp As Excel.Application 'Dim Wb As Excel.Workbook 'Dim Sht As Excel.Worksheet ... 阅读全文
posted @ 2017-07-06 23:48 wangway 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Public Sub Basic_CodeFrame() AppSettings 'On Error GoTo ErrHandler Dim StartTime, UsedTime As Variant StartTime = VBA.Timer 'Input code here Dim Wb As Workbook Dim Sht As... 阅读全文
posted @ 2017-07-06 23:46 wangway 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Public Sub GatherDataPicker() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序正在运... 阅读全文
posted @ 2017-07-06 23:42 wangway 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Private Type GUID Data1 As Long Data2 As Integer Data3 As Integer Data4(0 To 7) As Byte End Type Private Type GdiplusStartupInput GdiplusVersion As Long DebugEventCallback As ... 阅读全文
posted @ 2017-07-06 23:34 wangway 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Public Sub GetContents() Dim Reg As Object Dim Matches As Object Dim OneMatch As Object Dim Index As Long Dim TimeStart As Variant TimeStart = VBA.Timer Set Reg = CreateOb... 阅读全文
posted @ 2017-07-06 23:32 wangway 阅读(786) 评论(0) 推荐(0) 编辑
摘要: Sub 获取OutLook收件箱主题和正文() On Error Resume Next Dim sht As Worksheet Dim olApp As Outlook.Application Dim olMail As Outlook.MailItem Dim olNameSpace As Outlook.Namespace Dim OneF... 阅读全文
posted @ 2017-07-06 20:47 wangway 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: Public Sub NextSeven_CodeFrame() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序... 阅读全文
posted @ 2017-07-06 20:33 wangway 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: Sub NextSeven_CodeFrame() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序正在运行>>>... 阅读全文
posted @ 2017-07-06 20:24 wangway 阅读(562) 评论(0) 推荐(0) 编辑
摘要: Public Sub GatherDataPicker() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序正在运... 阅读全文
posted @ 2017-07-06 20:14 wangway 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Public Sub StartRecursionFolder() Dim Pre As Presentation Dim FolderPath As String Dim pp As String Dim id As String Dim oFileDialog As FileDialog Set oFileDialog = Applicatio... 阅读全文
posted @ 2017-07-06 15:36 wangway 阅读(1550) 评论(0) 推荐(0) 编辑
摘要: Sub NextSeven20170706001() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序正在运行>>... 阅读全文
posted @ 2017-07-06 14:09 wangway 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Public Sub GatherFilesData() Application.ScreenUpdating = False Application.DisplayAlerts = False Application.Calculation = xlCalculationManual Application.StatusBar = ">>>>>>>>程序正在运行... 阅读全文
posted @ 2017-07-06 00:16 wangway 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 单位里普遍存在各种低效率的办公行为,比如每年的自我评分。评分细目表为word文档,每行一个项目,每个项目要填写得分事项和分值,组长审核之后转成Excel向上递交。主要涉及到问题就是word文档中一列得分要转成Excel一行内容,如果一个人就复制,粘贴到Excel,再复制,转置即可。人一多,显得很麻烦 阅读全文
posted @ 2017-07-06 00:11 wangway 阅读(508) 评论(0) 推荐(0) 编辑