+ Reply to Thread
Results 1 to 3 of 3

Public vs Privtate vs Nothing

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Public vs Privtate vs Nothing

    I know the difference between a Public function vs a Private function. What I don't know is the difference between, for instance,
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    . Is there any value added by putting Public at the front?
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Public vs Privtate vs Nothing

    By default, i.e. if you don't specify Private/Public, functions are Public.
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Public vs Privtate vs Nothing

    So there's really no value in adding Public. Why is it even an option?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Public variables and how to use them
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-21-2018, 03:58 PM
  2. [SOLVED] Public variables
    By scottiex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2016, 03:39 PM
  3. Public Checkbox
    By dugdugdug in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2012, 04:45 AM
  4. Public Function
    By jmicdk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-29-2008, 08:15 AM
  5. Use of PUBLIC
    By BillCPA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2006, 08:45 AM
  6. Using A Public Function /
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2006, 04:15 PM
  7. [SOLVED] Dim vs. Public
    By Jason Morin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-27-2005, 10:06 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1