Archive for 九月, 2008
  • Filed under: Excel VBA 範例, Workbook 在背景作業中另存新檔 by chijanzen on 九月 30th, 2008
    索   引 D0011
    主   題 在背景作業中另存新檔
    版   本 >= 10.0(Office 2002)
    說   明 執行Excel內建的"另存新檔"後會開啟另存後的檔案,而原始檔案將會關閉;本範例則是執行"另存新檔"原始檔案還是開啟,而直接在硬碟建立新檔並且去除檔案中的程式碼
    參   考

    Popularity: 11%

    Read More » Tags
    • No Tags
    Share Comments (0)
  • Filed under: ActiveX, Excel VBA 範例 取消Active控件初始化提示(Forms3 and ActiveX initialization ) by chijanzen on 九月 30th, 2008
    索   引 G0007a
    主   題 取消Active控件初始化提示(Forms3 and ActiveX initialization )
    版   本 >= 11(Office 2003)
    說   明
    Office2003開啟Active控件時會出現是否啟動Active控件的提示,這個問題可以利用修改註冊表的方法讓系統可以直接開啟Active控件而不提示
    參   考

    Popularity: 9%

    Read More » Tags
    • No Tags
    Share Comments (0)
  • Filed under: ActiveX, Excel VBA 範例 取消Active控件初始化提示(UFI control ) by chijanzen on 九月 30th, 2008
    索   引 G0007
    主   題 取消Active控件初始化提示(UFI control )
    版   本 >= 11(Office 2003)
    說   明
    Office2003開啟Active控件時會出現是否啟動Active控件的提示,這個問題可以利用修改註冊表的方法讓系統可以直接開啟Active控件而不提示
    參   考

    Popularity: 9%

    Read More » Tags
    • No Tags
    Share Comments (0)
  • Filed under: WordPress 關閉WP2.6的主題預覽 by chijanzen on 九月 29th, 2008

    前幾天網站更新到 WP 2.6.2,後來發現主題預覽的功能之前已關閉掉了,升級後又跑回來了 ??
    很不喜歡這個功能,又忘記怎麼關掉了,這次將過程紀錄記錄下來
    用編輯器打開 \wp-admin\themes.php,找到下列代碼:

    add_thickbox();
    wp_enqueue_script( 'theme-preview' );

    分別在它們前面加入註釋符號「//」即可。如:

    //add_thickbox();
    //wp_enqueue_script( 'theme-preview' );

    這樣就關閉主題預覽的功能了

    Popularity: 2%

    Read More » Tags
    • No Tags
    Share Comments (0)
  • Filed under: Excel VBA 範例, Function 統計字串中共有多少個字句及字元 by chijanzen on 九月 29th, 2008
    統計字串中共有多少個字句

    Function 聲明

    Function Number_of_Words(Text_String As StringAs Integer

    說明
    統計字串中共有多少個字句
    返回值 Integer 參數表 參數 類型及說明

    Text_String

    String 資料型態。可以是指定的儲存格或字串

    程式碼
    Function Number_of_Words(Text_String As StringAs Integer
    '統計字串中有幾個字句
      vWords = Split(Text_String, " ")
      Number_of_Words = UBound(vWords) + 1 - LBound(vWords)
    End Function
     

    範例:

     


    Sub test()
        MsgBox "儲存格 I4 共有 " & Number_of_Words(Range("I4")) & " 字句"
    End Sub

     

    檔案下載:檔案下載


    Popularity: 8%

    Read More » Tags
    • No Tags
    Share Comments (0)
  • Filed under: ActiveX, Excel VBA 範例 將ImageCombo 控件中的圖示插入到目前的儲存格中 by chijanzen on 九月 28th, 2008
    索   引 G0006
    主   題 將ImageCombo 控件中的圖示插入到目前的儲存格中
    版   本 >= 9.0(Office 2000)
    說   明 本範例示範如何利用 SetClipboardData API函數將 ImageList控件中的Picture以CF_BITMAP格式複製到系統剪貼簿中,然後再將剪貼簿內容貼到工作表中
    參   考

    Popularity: 10%

    Read More » Tags
    • No Tags
    Share Comments (0)
Page 1 of 712345...Last »
About me
chijanzen 分享個人Excel VBA 學習經驗,架站心得, 日常生活記事等...

Add to Google

分類
Translator
Chinese (Simplified) flagItalian flagKorean flagEnglish flagGerman flag
French flagJapanese flagRussian flagBulgarian flagFinnish flag
相簿