+ Reply to Thread
Results 1 to 4 of 4

Code to do Save as a specific cell value anytime the sheet is changed

  1. #1
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Code to do Save as a specific cell value anytime the sheet is changed

    I need a VBA to do a save as anytime the sheet is changed.

    Picking log-Rev6.xlsm

    VBA password is Kayley98

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,628

    Re: Code to do Save as a specific cell value anytime the sheet is changed

    Hi,

    You already have in your file appropriate procedure in ThisWorkbook
    Please Login or Register  to view this content.
    But as one can see, at the end of it (after first saving) you switch off Events
    I don't think you restore it elsewhere, do you?
    If not - the event handlers are disabled and nothing happens after next changes in the workbook.

    so may be start with:

    Please Login or Register  to view this content.
    And in immediate window of the VBA editor write
    Please Login or Register  to view this content.
    And then try again how your file works
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    04-18-2013
    Location
    utah
    MS-Off Ver
    2010
    Posts
    668

    Re: Code to do Save as a specific cell value anytime the sheet is changed

    Still not working

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,628

    Re: Code to do Save as a specific cell value anytime the sheet is changed

    1) in some other pieces of code you are disabling events - I spotted it for instance in Worksheet_Change of your first sheet. (most probable cause of problem). But also in Workbook_BeforeClose - you close the workbook, but enableevents scope is application-wide so other workbooks you have open (or open now) have disabled events too.

    2) as you have Workbook_SheetChange in ThisWorkbook code, you shall not try to double the same functionality in sheet codes.

    I have not tested further, because you have hardcoded "D:\picking logs\" etc. in several places in the code.

    Anyway: if the event does not trigger the procedure - first concern always is
    Please Login or Register  to view this content.
    (or 0)

    If for some reason you write Application.enableevents = false in the code, always make sure, that few lines later (the sooner, the better) you enable it again by
    Please Login or Register  to view this content.

+ 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. I need a VBA to save anytime any cell on sheet changes.
    By superchew in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-29-2014, 12:16 PM
  2. Need a vba to save anytime sheet changes at all
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2014, 08:30 PM
  3. [SOLVED] VBA code that will save anytime sheet is updated and..
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-09-2013, 01:14 AM
  4. [SOLVED] VBA Code to Copy Cell Value to Another Sheet When Value Is Changed
    By kev2177 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-12-2013, 07:14 PM
  5. Need code to save under filename drawn from specific cell
    By j_gilhuly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2009, 07:54 PM

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