using hash(#) in vba [duplicate]












0
















This question already has an answer here:




  • #if, #else, #end if … what do the hash signs mean in VBA?

    2 answers




Can someone clarify why I have to use a # here?



#If Win64 Then
do something
#Else
do something else
#End If









share|improve this question















marked as duplicate by John Coleman, Luuklag, QHarr vba
Users with the  vba badge can single-handedly close vba questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 20 '18 at 12:17


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.























    0
















    This question already has an answer here:




    • #if, #else, #end if … what do the hash signs mean in VBA?

      2 answers




    Can someone clarify why I have to use a # here?



    #If Win64 Then
    do something
    #Else
    do something else
    #End If









    share|improve this question















    marked as duplicate by John Coleman, Luuklag, QHarr vba
    Users with the  vba badge can single-handedly close vba questions as duplicates and reopen them as needed.

    StackExchange.ready(function() {
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function() {
    $hover.showInfoMessage('', {
    messageElement: $msg.clone().show(),
    transient: false,
    position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
    dismissable: false,
    relativeToBody: true
    });
    },
    function() {
    StackExchange.helpers.removeMessages();
    }
    );
    });
    });
    Nov 20 '18 at 12:17


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      0












      0








      0









      This question already has an answer here:




      • #if, #else, #end if … what do the hash signs mean in VBA?

        2 answers




      Can someone clarify why I have to use a # here?



      #If Win64 Then
      do something
      #Else
      do something else
      #End If









      share|improve this question

















      This question already has an answer here:




      • #if, #else, #end if … what do the hash signs mean in VBA?

        2 answers




      Can someone clarify why I have to use a # here?



      #If Win64 Then
      do something
      #Else
      do something else
      #End If




      This question already has an answer here:




      • #if, #else, #end if … what do the hash signs mean in VBA?

        2 answers








      excel vba excel-vba






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 '18 at 12:06









      Luuklag

      3,37492742




      3,37492742










      asked Nov 20 '18 at 11:59









      VilhelmPVilhelmP

      1




      1




      marked as duplicate by John Coleman, Luuklag, QHarr vba
      Users with the  vba badge can single-handedly close vba questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Nov 20 '18 at 12:17


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by John Coleman, Luuklag, QHarr vba
      Users with the  vba badge can single-handedly close vba questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Nov 20 '18 at 12:17


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


























          1 Answer
          1






          active

          oldest

          votes


















          1














          Prefixing with a # means you are specifying compiler directives and compiling different sets of code depending on values that have been predefined e.g Win64 or which you have defined yourself by adding values to Tools.PropertiesGeneral.Conditional Compilation Arguments.



          https://docs.microsoft.com/en-us/office/vba/language/reference/directives






          share|improve this answer






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Prefixing with a # means you are specifying compiler directives and compiling different sets of code depending on values that have been predefined e.g Win64 or which you have defined yourself by adding values to Tools.PropertiesGeneral.Conditional Compilation Arguments.



            https://docs.microsoft.com/en-us/office/vba/language/reference/directives






            share|improve this answer




























              1














              Prefixing with a # means you are specifying compiler directives and compiling different sets of code depending on values that have been predefined e.g Win64 or which you have defined yourself by adding values to Tools.PropertiesGeneral.Conditional Compilation Arguments.



              https://docs.microsoft.com/en-us/office/vba/language/reference/directives






              share|improve this answer


























                1












                1








                1







                Prefixing with a # means you are specifying compiler directives and compiling different sets of code depending on values that have been predefined e.g Win64 or which you have defined yourself by adding values to Tools.PropertiesGeneral.Conditional Compilation Arguments.



                https://docs.microsoft.com/en-us/office/vba/language/reference/directives






                share|improve this answer













                Prefixing with a # means you are specifying compiler directives and compiling different sets of code depending on values that have been predefined e.g Win64 or which you have defined yourself by adding values to Tools.PropertiesGeneral.Conditional Compilation Arguments.



                https://docs.microsoft.com/en-us/office/vba/language/reference/directives







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '18 at 12:04









                FreeflowFreeflow

                551128




                551128

















                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?