香港新浪網MySinaBlog 精選話題工具隨機
Emily | 1st May 2008, 10:41 AM | Excellent Sites | (184 Reads)

關於清空Office的剪切板

wangminbai 一位令我對 Excel 再產生興趣的小伙子

A remarkable topic to clear Office Clipboard written in Chinese Simplified.  

 (閱讀全文)

Emily | 1st Apr 2008, 16:45 PM | 雜談 | (150 Reads)

More than 100000 Visitors

 Thanks

10000 Visitors


Emily | 3rd Feb 2008, 12:17 PM | API / Add-in | (654 Reads)

判斷 Excel 單格是否處於編輯狀態

以下代碼就是當處於編輯狀態時在Excel的狀態欄上顯示 正處於編輯狀態

The code will display "Excel in edit mode ......" in Status bar if Excel is in edit mode

 (閱讀全文)

Emily | 3rd Jan 2008, 13:34 PM | WB & WS | (287 Reads)

顯示自定檢視模式名稱 CurrentViews

Function CurrentView(Optional DummyArg As Variant) As String
Dim cbo As CommandBarComboBox
  
On Error Resume Next
Set cbo = Application.CommandBars.FindControl(ID:=950)

On Error GoTo 0
If cbo Is Nothing Then
    With Application.CommandBars.Add(Temporary:=True)
        Set cbo = .Controls.Add(ID:=950)
        .Enabled = False
    End With
End If

CurrentView = cbo.Text

End Function

Sub Test()
    'Application.DisplayStatusBar = True
    'Application.StatusBar = CurrentView
    MsgBox CurrentView
End Sub


Emily | 14th Dec 2007, 21:27 PM | Excellent Sites | (722 Reads)

Download Videos from YouTube

Please read Download Videos from YouTube by Ivan F Moala

More New Excel VBA Examples


Emily | 9th Dec 2007, 12:22 PM | 雜談 | (504 Reads)

Google Chart API

The Google Chart API lets you dynamically generate charts.

For details please refer to http://code.google.com/apis/chart/

You'll find more examples here.


Emily | 5th Aug 2007, 12:11 PM | Network / Media | (1469 Reads)

Using VBA to access the Net

 Tushar Mehta:

Over the past few years there has been an increase in people who want to programmatically access information available over the Internet.  There are a few different ways of doing so with results available in a few different formats.  In this chapter I discuss some of the methods and formats.  The methods include the use of InternetExplorer and XMLHttp and the formats include the “human friendly” HTML as well as XML and JSON.  As part of the discussion of XML, I present a XSL stylesheet to convert a webservice XML output into a SpreadsheetML form that can then be opened directly by Excel.  By the end of the chapter, the reader will know how to develop fully functional code to support concurrent asynchronous VBA access to multiple web sites.

For details please refer to

http://www.tushar-mehta.com/publish_train/xl_vba_cases/vba_web_pages_services/index.htm

 


Emily | 24th Jun 2007, 23:35 PM | WB & WS | (1089 Reads)

移動 Mouse 定位在 A8

'---------------------------------------------------------------------------------------
' Module    : Module1
' DateTime  :
' Author    : Colo
' Purpose   : Set Cursor Position
'---------------------------------------------------------------------------------------


Public Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long

Sub CursorPosition()
    Dim X As Long, Y As Long
    Dim Rg As Range
    Set Rg = Range("A8")
    X = ActiveWindow.PointsToScreenPixelsX((Rg.Left) * 96 / 72 * ActiveWindow.Zoom / 100)
    Y = ActiveWindow.PointsToScreenPixelsY((Rg.Top) * 96 / 72 * ActiveWindow.Zoom / 100)
    ' 72 (points per inch) is divided by a 96 (pixels per inch),
    ' then multiplied the percentage of the ActiveWindow.Zoom.
    ' Please note, a 96 /inch is a standard pixel resolution,
    ' so depending on the case, this coefficient must be changed to suit.

    SetCursorPos X, Y
End Sub

 (閱讀全文)

Next