+ Reply to Thread
Results 1 to 5 of 5

Private Sub Workbook_SheetChange..issue

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Private Sub Workbook_SheetChange..issue

    Hello all

    having some trouble with my macro, as it doesnt appear to be working.

    I have a macro in place that changes the worksheet name based on the entry in cell E5.

    for some odd reason, after i re-opened the file, it stopped working. i have the workbook protected thru a password (u can run the password to unprotect sheet). but can someone pls let me know why the workbook is not updating the worksheet name when i change the entries in cell E5?

    I have the following formula in "this workbook"

    Please Login or Register  to view this content.
    can someone pls advise..thx u
    Attached Files Attached Files
    Last edited by jw01; 08-09-2011 at 12:38 PM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Private Sub Workbook_SheetChange..issue

    The cell you're changing is D5, not E5.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Private Sub Workbook_SheetChange..issue

    D5 contains i.e. the name, but E5 contains another part

    i.e. D5 = John Doe
    E5 = D5&" Performance"

    so that is why i have it linked to E5, but its not changing it for some reason...ur thoughts?

    basically, it changes, but....i need to go into the cell E5 and press enter. it does not automatically change, is there a way to make that work, for the macro to auto refresh?
    Last edited by jw01; 08-09-2011 at 12:31 PM.

  4. #4
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: Private Sub Workbook_SheetChange..issue

    E5 contains a formula which is what you want the sheet to be called, but D5 is the cell being changed, so it's when Target holds a reference to D5 that you want the worksheet name to change.

    Using your current code as a basis:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,233

    Re: Private Sub Workbook_SheetChange..issue

    dude ur a genius..thx u so much!!!!!

+ 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