Consulting

Results 1 to 14 of 14

Thread: Declare function no longer works

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Declare function no longer works

    I'm using Excel for Office 365 and up until a couple of weeks ago (or thereabouts) this statement gave no trouble:

    Private Declare Function apiShowWindow Lib "user32" Alias "ShowWindow" _
                (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
    Now, trying to save a program with this line in it gives me a sharing violation and an access violation. Can someone please help? Thanks!!
    Last edited by Aussiebear; 02-15-2022 at 06:50 PM. Reason: Added code tags to supplied code

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •