<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[foreverfall的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/foreverfall</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; foreverfall]]></copyright><item><title><![CDATA[RibbonX：EXCEL2013自定义功能区]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/47614921</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/47614921</guid><author>foreverfall</author><pubDate>Thu, 13 Aug 2015 16:47:48 +0800</pubDate><description><![CDATA[转自http://club.excelhome.net/thread-1047254-1-1.html


参考各位前辈做的自定义office2007和office2010功能区的帖子，经过不断摸索，现做出EXCEL2013版本的自定义功能区
再次特别感谢   佛山小老鼠  老师，灵感全来于此！！！！！下面进入正题：
第一步：创建EXCEL启用宏的工作簿  自定义.xlsm
     ]]></description><category></category></item><item><title><![CDATA[VBA学习笔记]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/47444019</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/47444019</guid><author>foreverfall</author><pubDate>Wed, 12 Aug 2015 14:28:23 +0800</pubDate><description><![CDATA[1、代码运行结束后退出excel程序
Application.DisplayAlerts = False
Application.Quit

注意：如果在上面代码之前加入一句ThisWorkbook.Close False，则excel程序不会退出。]]></description><category></category></item><item><title><![CDATA[Visual Studio Ultimate 2013 with Update 4  下载地址]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46906337</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46906337</guid><author>foreverfall</author><pubDate>Thu, 16 Jul 2015 08:51:04 +0800</pubDate><description><![CDATA[Visual Studio Ultimate 2013 with Update 4 是一个先进的开发解决方案，各种规模的团队通过它均可设计和创建引人注目的应用程序，使用户兴致勃勃。





• 在线安装包，1.3MB：

http://download.microsoft.com/download/D/4/8/D48D1AC2-A297-4C9E-A9D0-A218E6609F0]]></description><category></category></item><item><title><![CDATA[EXCEL判断字符串中是否包含某个特定子串的公式]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46787275</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46787275</guid><author>foreverfall</author><pubDate>Tue, 07 Jul 2015 11:33:11 +0800</pubDate><description><![CDATA[判断字符串中是否包含某个特定子串的公式总结。
学习的过程是一个不断积累和总结的过程，正是EXCEL HOME给了偶这样好的平台。
例： A列 中输入字符串： "提前祝大家元旦快乐！", B列中输入公式判断是否包含子串 "大家", 包含返回"大家快乐!", 不包含返回"各位快乐!".
1. COUNTIF
=IF(COUNTIF(A1,"*大家*"),"大家快乐!", "各位快乐!")
2]]></description><category></category></item><item><title><![CDATA[GetObject 函数的使用]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46692829</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46692829</guid><author>foreverfall</author><pubDate>Tue, 30 Jun 2015 10:59:38 +0800</pubDate><description><![CDATA[GetObject 函数ActiveX 对象的引用

返回文件中的 ActiveX 对象的引用。
语法
GetObject([pathname] [, class])
GetObject 函数的语法包含下面几个命名参数：
部分 描述 
pathname 可选的；Variant (String)。包含待检索对象的文件的全路径和名称。如果省略 pathname，则 class 是必需的。]]></description><category></category></item><item><title><![CDATA[EXCEL VBA 文件夹操作——批量添加指定文件夹的图片]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46469897</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46469897</guid><author>foreverfall</author><pubDate>Fri, 12 Jun 2015 11:47:48 +0800</pubDate><description><![CDATA[这个小程序的前提是指定的文件夹里装的全部是图片格式的文件

步骤1：

添加一个filesystemobject引用，工具--->引用---->microsoft scripting runtime

步骤2：

添加模块，并添加以下代码


Option Explicit
'设置单元格大小，单元格大小设置因人而异，设置数量要大于或者等于文件夹图片数量，这里范围为range（]]></description><category></category></item><item><title><![CDATA[Excel vba从excel中导出表格数据和图表到新word文档]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46469761</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46469761</guid><author>foreverfall</author><pubDate>Fri, 12 Jun 2015 11:41:02 +0800</pubDate><description><![CDATA[office应用程序是可以相互访问的，比如可以把excel的数据导出到word中

step1：

首先要引用word工程对象，在excelvba中依次点击 工具——》引用——》microsoft word 11.0 library

如果是2007版本，应该选择12.0；2010版本，选择14.0

vba从excel中导出表格数据和图表到新word文档" title="exce]]></description><category></category></item><item><title><![CDATA[DATEDIF函数]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46428673</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46428673</guid><author>foreverfall</author><pubDate>Tue, 09 Jun 2015 16:45:00 +0800</pubDate><description><![CDATA[1、简要说明： 返回两个日期之间的年\月\日间隔数

2、基本语法： =DATEDIF(开始日期，结束日期，单位代码）

3、实例1：
题目： 计算出生日期为1973-4-1人的年龄

公式： =DATEDIF("1973-4-1",TODAY(),"Y")

结果： 33

简要说明 当单位代码为"Y"时,计算结果是两个日期间隔的年数.

4、实例2：
题目： 计算日]]></description><category></category></item><item><title><![CDATA[EXCEL中定义名称]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46428499</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46428499</guid><author>foreverfall</author><pubDate>Tue, 09 Jun 2015 16:34:46 +0800</pubDate><description><![CDATA[名称的定义是EXCEL的一基础的技能，可是，如果你掌握了，它将给你带来非常实惠的妙处！


一、定义名称的妙处

1.
 如何定义名称

       
 插入 – 名称 – 定义（或者按组合键），在“定义名称”对话框中，在“在当前工作簿中的名称”文本框中输入名称字符，单击“确定”按钮

2.
 定义名称

       
 建议使用简单易记的名称，不可使用类似A1…]]></description><category></category></item><item><title><![CDATA[访问WORD表格行或列时产生的错误"无法访问此集合中单独的行，因为表格有纵向合并的单元格。"]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46340027</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46340027</guid><author>foreverfall</author><pubDate>Wed, 03 Jun 2015 08:07:20 +0800</pubDate><description><![CDATA[访问表格行或列时产生错误："无法访问此集合中单独的行，因为表格有纵向合并的单元格。"
    如果要访问绘制表格中单独的行或列，而该表格又不统一，则会产生一个运行时错误。例如，如果活动文档中第一张表格的每列中具有不同数量的行，则使用下列指令将导致出错。

Sub RemoveTableBorders()
    ActiveDocument.Tables(1).Rows(1).Borders]]></description><category></category></item><item><title><![CDATA[调用 API 函数-ShellExecute实例]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46310555</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46310555</guid><author>foreverfall</author><pubDate>Mon, 01 Jun 2015 14:41:38 +0800</pubDate><description><![CDATA[一、API函数ShellExecute用法
1.   函数功能：

运行一个外部程序（或者是打开一个已注册的文件、打开一个目录、打印一个文件等等），并对外部程序有一定的控制。
2、ShellExecute函数原型及参数含义如下：
  
ShellExecute(
  hWnd: HWND; {指定父窗口句柄}
  Operation: PChar; {指定动作, 譬如:
open]]></description><category></category></item><item><title><![CDATA[EXCEL从ACCESS中取值]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46046077</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46046077</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 14:06:45 +0800</pubDate><description><![CDATA[ACCESS数据库界面：



EXCEL的窗体界面：



窗体中的代码：
Private Sub ComboBox1_Change()
    Dim cn As Object, sql$, arr, i&
    Set cn = CreateObject("adodb.connection")
    cn.Open "provider=Microsoft.jet.OLE]]></description><category></category></item><item><title><![CDATA[列出指定文件夹中的子文件夹和文件]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46046055</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46046055</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 14:05:09 +0800</pubDate><description><![CDATA[VBA列出文件夹中所有的子文件夹


Sub ShowFolderList()
    Dim fso As Object, oFolder As Object
    Dim oFolderArray As Object, f As Object
    Dim k&

    Set fso = CreateObject("scripting.filesystemobject")
   ]]></description><category></category></item><item><title><![CDATA[提取Excel、Word、PPT文件中的Flash文件的两种方法]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46045975</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46045975</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 14:01:00 +0800</pubDate><description><![CDATA[方法一：VBA代码法
新建一个文件，然后拷贝以下代码到VBA模块中，运行代码，选择含有Flash的Excel文件确定，即可获取swf文件
Sub ExtractFlash()
    Dim tmpFileName As String
    Dim FileNumber As Integer
    Dim myFileId As Long
    Dim MyFileLen As Long]]></description><category></category></item><item><title><![CDATA[【自定义函数】数据文本字符反转]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46044647</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46044647</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 11:45:03 +0800</pubDate><description><![CDATA[如何将单元格中的数据反转，如“优快云”变成“NDSC”？
由于工作表函数没有直接的能连接内存数组的函数，所以通常的解法是用辅助单元格或自定义函数。
我们这里主要说自定义函数，一般人的做法是用MID函数循环逐个取出并连接，最后取得一个反转的数据，但其实EXCEL的VBA里已经存在着一个反转数据的函数：StrReverse，所以自定义一个函数只需要1行代码：
    Function reve]]></description><category></category></item><item><title><![CDATA[使用VBA操作Word表格]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46044107</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46044107</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 11:12:53 +0800</pubDate><description><![CDATA[一、生成表格
Private Sub CreateTable(mRows As Integer, mColumns)
    Dim mRange As Range
    Set mRange = ActiveDocument.Range
    mRange.SetRange Start:=ActiveDocument.Range.End, End:=ActiveDocument.Ra]]></description><category></category></item><item><title><![CDATA[银行账号和身份证号的数据有效性设置]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46041597</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46041597</guid><author>foreverfall</author><pubDate>Wed, 27 May 2015 08:22:21 +0800</pubDate><description><![CDATA[身份证，15位或18位，只能是数字，不能有空格和其他字符，除18位最后一位外，不能有英文字母
=((LEN(A2)=15)+(LEN(A2)=18))*(ISNUMBER(VALUE(A2))+(ISNUMBER(VALUE(--LEFT(A2,17)))*(RIGHT(A2,1)="X")))
 
银行账号，务必是901开头，011结尾，20位
=(LEFT(B2,3)="901")*(]]></description><category></category></item><item><title><![CDATA[ADO的SQL语句中的“*”和“?”]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46010989</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46010989</guid><author>foreverfall</author><pubDate>Tue, 26 May 2015 17:48:26 +0800</pubDate><description><![CDATA[由于VBA中代表单个和多个字符是用“?”和“*”代表的，所以许多刚学ADO的朋友经常会问：为什么在SQL语句中这两个符号不能用呢？应该用什么符号来代表呢？


这是因为VBA+ADO所用的驱动的关系，本人对这个也不是太精，具体大家可以去微软的网站上找找答案，所以VBA+ADO的SQL语句中的“*”和“?”这两个符号是用“%”和“_”，即百分号和下划线，明白了吧，赶快去试试吧。


再说]]></description><category></category></item><item><title><![CDATA[创建指定程序的桌面快捷方式--以记事本为例]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46010227</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46010227</guid><author>foreverfall</author><pubDate>Tue, 26 May 2015 17:01:12 +0800</pubDate><description><![CDATA[Sub CreatShortCut()
    Dim WSHShell
    Set WSHShell = CreateObject("WScript.Shell")
    Dim MyShortcut, MyDesktop, DesktopPath
    DesktopPath = WSHShell.SpecialFolders("Desktop")
    Set MyShortcut]]></description><category></category></item><item><title><![CDATA[【自定义函数】判断指定文件夹下是否包含子文件夹]]></title><link>https://blog.youkuaiyun.com/foreverfall/article/details/46010075</link><guid>https://blog.youkuaiyun.com/foreverfall/article/details/46010075</guid><author>foreverfall</author><pubDate>Tue, 26 May 2015 16:59:41 +0800</pubDate><description><![CDATA[Function CheckFolder(sPath As String) As Boolean        '参数为指定文件夹的路径，返回值为 Boolean 型
    If Right(sPath, 1) <> "/" Then sPath = sPath & "/"       '判断路径右端是否包含"/",如果不包含则添加
    Dim sDir As String
    sDir]]></description><category></category></item></channel></rss>