+ Reply to Thread
Results 1 to 3 of 3

two code starting private sub workbook open in a same workbook

  1. #1
    Forum Contributor
    Join Date
    09-04-2007
    Posts
    127

    two code starting private sub workbook open in a same workbook

    in my excel sheet, I have used the below code for two different macro function. But my both the code carrying private sub workbook open so its not working. any one can help me, please.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    maybe

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon ss_bb_24

    You can't have two module with the same name or you'll encounter an ambiguous name error at runtime.

    The solution, my friend, is simple : put all your code into one module. Just bear in mind whether you want to hide the sheets first or collect the users initials. If you go for the former first, the macro will halt until the user enters ther initials and clicks OK.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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