+ Reply to Thread
Results 1 to 7 of 7

VBA code that has repeated numbers

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Exclamation VBA code that has repeated numbers

    Hi, i need help with this part of code

    Please Login or Register  to view this content.
    As you can see im protecting the sheet with the password 505050 and i have it repeated 3 times, is there a way to change the number with some shortcut or something so i change that password only once? I'll teach someone how to change it so he can put his own password and I just want that he change it in only one part not 3.

    thanks in advance
    Last edited by nassark; 08-29-2018 at 07:40 AM.

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA code that has repeated numbers

    See if this works

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Re: VBA code that has repeated numbers

    It worked my friend!! but I have a question. Can that code applied to all sheets in the workbook? all are gonna be the same but with different names. Can it be applied so if I change the ps value it changes in all sheets?

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: VBA code that has repeated numbers

    You may use nigelog's code in the bellow event of the workbook

    Please Login or Register  to view this content.
    and replace sheet name used in the code to sh like

    Please Login or Register  to view this content.
    would be
    Please Login or Register  to view this content.
    assuming all sheets have the same structure and password
    Teach me Excel VBA

  5. #5
    Registered User
    Join Date
    08-29-2018
    Location
    lebanon
    MS-Off Ver
    2010
    Posts
    8

    Re: VBA code that has repeated numbers

    Totally work!! Thanks for this great help both of you!! My problem have been solved!

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: VBA code that has repeated numbers

    No problem,

    can you mark thread as solved nassark

    and thanks for the rep

  7. #7
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: VBA code that has repeated numbers

    Thanks for the feedback and rep+

+ 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. Add numbers and show repeated nrs.
    By Seafreight Discounte in forum Excel General
    Replies: 0
    Last Post: 01-17-2018, 02:14 PM
  2. formula repeated numbers
    By max_max in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-04-2016, 09:14 AM
  3. Highlight repeated numbers
    By Alicia0096 in forum Excel General
    Replies: 2
    Last Post: 08-03-2010, 09:57 PM
  4. Replies: 2
    Last Post: 05-02-2006, 11:20 AM
  5. delete repeated numbers
    By Labman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2005, 08:07 PM
  6. [SOLVED] Phone Numbers Repeated
    By Zip Codes in forum Excel General
    Replies: 1
    Last Post: 06-16-2005, 05:05 PM
  7. [SOLVED] how do i get a warning for repeated numbers
    By Kenya in forum Excel General
    Replies: 1
    Last Post: 04-04-2005, 09: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