mrdavidthorn
Programmer
Hi Chaps
Got an excel spreadsheet that calls the api and lists the path of open files it worked well until I upgraded to 2010, now I get an automation error - does anyone know of any API changes in 2010?
In my example its the code
Private Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hwnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
that seems to be causing the problem, not sure what this can be changed to in Excel 2010.
Got an excel spreadsheet that calls the api and lists the path of open files it worked well until I upgraded to 2010, now I get an automation error - does anyone know of any API changes in 2010?
In my example its the code
Private Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hwnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
that seems to be causing the problem, not sure what this can be changed to in Excel 2010.