About 8,330 results
Open links in new tab
  1. API - "SendMessage" - in Excel | MrExcel Message Board

    Jun 16, 2005 · Does anyone know how to use the "SendMessage" API call in Excel? It doesn't recognize the method "ByVal hwnd as Long" when applied to an object Here is the VBA code Private Declare …

  2. API - "SendMessage" - in Excel - Excel VBA - Board Archive - MrExcel ...

    Feb 7, 2002 · Does anyone know how to use the "SendMessage" API call in Excel? It doesn't recognize the method "ByVal hwnd as Long" when applied to an object (combobox for example). Thanx.

  3. VBA Code to close an opened pdf amendment needed - MrExcel

    Apr 10, 2017 · Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As LongPtr, ByVal wMsg As Long, ByVal wParam As LongPtr, lParam As Any) As LongPtr

  4. Help with WinAPI Send Message | MrExcel Message Board

    Mar 4, 2016 · Hi guys, New to this kind of stuff but I have some code: Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal …

  5. Force Repaint of Excel Workbook (WinAPI) | MrExcel Message Board

    Nov 30, 2011 · Supposedly, WM_SETREDRAW with wParam=True allows redrawing, InvalidateRect () tells the window its whole client area needs repainting on the next WM_PAINT message, and …

  6. SendMessage and Control handles | MrExcel Message Board

    Nov 15, 2006 · Yes. Using SendMessage is much better and cleaner However it's not always possible. With all the above datapoints, my thought run like this: It should be possible to get the handles …

  7. creating labels on worksheet with events - MrExcel

    May 27, 2010 · SendMessage .hwnd, ByVal WM_SETREDRAW, ByVal 1&, 0& InvalidateRect .hwnd, 0, 0 ShowCursor True End With End Sub Public Sub RemoveLabels() Dim oLabel As OLEObject For …

  8. How to Close Microsoft Edge Webpage (s) Using VBA - MrExcel

    Nov 27, 2022 · If IsIconic(hwnd) Then Call SendMessage(hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, ByVal NULL_PTR) End If Set AccTab = AccSystemPane.accChild(i&) AccTab.accDoDefaultAction …

  9. SendKeys Alternative using API | MrExcel Message Board

    Aug 13, 2017 · for my understanding using sendmessage is a more reliable way to simulate key press then using sendKeys How can i replace this line of code: SendKeys "^a" With a sendMessage …

  10. WinAPI Sendmessage () | MrExcel Message Board

    Apr 8, 2005 · After exhausting all avenues to get direct access to our vaulted drawing database, I have been told that the only access that anyone needs is through the online Search Engine. They just …