+ Reply to Thread
Results 1 to 7 of 7

Convert this private sub to public sub to work

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Convert this private sub to public sub to work

    hello,

    I have a private sub that will automatically active when cell F5 change. Is there any way that convert this macro to public sub so that I can activate it when I hit a form button? this is my code

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert this private sub to public sub to work

    Hi

    All you have to do is change the two lines.

    Line1:
    Please Login or Register  to view this content.
    Line2: Delete it you dont need it.

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Convert this private sub to public sub to work

    I used to do that but it did not work

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert this private sub to public sub to work

    I just noticed this is using the target cell in the macro,

    replace each occurrance of target with
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Convert this private sub to public sub to work

    What exactly does the macro do?

  6. #6
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Convert this private sub to public sub to work

    the macro is to hide records that populate after searching the string in F2.

  7. #7
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Convert this private sub to public sub to work

    mehmetcik: your suggestion did not work. Do you have a complete code for me to check ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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