ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   #if-then-#elseif-#endif (https://www.excelbanter.com/excel-programming/315586-if-then-elseif-endif.html)

Sheldon

#if-then-#elseif-#endif
 
In the following code outline, I need to make a call to a DLL.
Question 1: Where would this code go:
Question 2: In the Declare statement can I alias both api call with the
same name and just use the one alias name in the execution?

' If Mac evaluates as true, do the statements following the #If.
#If Mac Then
'. Place exclusively Mac statements here.
'.
'.
' Otherwise, if it is a 32-bit Windows program, do this:
#ElseIf Win32 Then
'. Place exclusively 32-bit Windows statements here.
'.
'.
' Otherwise, if it is a 32-bit Windows program, do this:
#Else Win16 then
'. Place exclusively 32-bit Windows statements here
'.
'.
#End If


Thanks



All times are GMT +1. The time now is 12:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com