之前在xp office2003上写了一个excel VBA
可以使用ie去点连结后另存新档
在另存新档的画面可以去改档名
部份程式如下
hcombox32 = FindWindowEx(hWnd, 0, "ComboBoxEx32", vbNullString)
hcombox = FindWindowEx(hcombox32, 0, "ComboBox", "")
hedit = FindWindowEx(hcombox, 0, "Edit", "")
SendMessageByString hedit, WM_SETTEXT, Len(fname), fname
hbtn = FindWindowEx(hWnd, 0, vbNullString, "储存(&S)")
而现在改用win7 64bit office 2010后
程式执行到这段程式就会出错
hcombox32 = FindWindowEx(hWnd, 0, "ComboBoxEx32", vbNullString)
请高手们指点一下
谢谢