Using external libraries in Excel VBA

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I've seen a lot of code provided on the forums here that uses lines like:

Code:
Private Declare Function CloseClipboard Lib "user32" () As Long

or

Code:
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

And was wondering where I might be able to find more information on how to use these, what each library has in it, and where in my code these libraries would be helpful. They seem like they can call in some incredibly powerful functions that will benefit me in the future.

Thanks!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
For all things Win API related, start here. :)
Also be aware that injudicious use can crash your machine with little to no warning...
 
Upvote 0
Perfect! Gives me some "research" to do today at work! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,225,535
Messages
6,185,501
Members
453,298
Latest member
Adam1258

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top