+ Reply to Thread
Results 1 to 14 of 14

Monitoring Sheet for change in cell

  1. #1
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Monitoring Sheet for change in cell

    Hi,

    I really need help with a big problem:

    If the user enters a numeric value in Range ("B" & Rows.Count).End(xlUp).Offset(1), I need the code to copy the formulas in Range ("A12,C12:V12") to Offset row
    If there is no user entry in Range ("B" & Rows.Count).End(xlUp).Offset(1) then nothing should happen.

    This should be monitored in sheet at all times.

    I`ve done som research and think the code must be entered as a Private Sub Worksheet_SelectionChange(ByVal Target As Range) sub?

    Is this possibly?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Monitoring Sheet for change in cell

    Yes, you need to put something like:
    Please Login or Register  to view this content.
    in the worksheet object module

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Copy the below code and do right click on sheet tab and select view code and paste it.

    Close the VBA window (Alt+Q to close VBA window) and return to that sheet and check.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Monitoring Sheet for change in cell

    Thank`s Sixthsense. Possible to filldown formulas only?

  5. #5
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Monitoring Sheet for change in cell

    Thank' s ragulduy. I get a Compile error "Sub of Function not defined", and IsNumber is outlined. You know why?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Replace the previous code with the below one

    Please Login or Register  to view this content.

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Quote Originally Posted by Lasse Moe View Post
    "Sub of Function not defined", and IsNumber is outlined. You know why?
    Change it to IsNumeric

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Monitoring Sheet for change in cell

    Try:
    Please Login or Register  to view this content.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Hi ragulduy,

    Me too thought to code it in that way but .Formula includes the constant, I think

  10. #10
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Monitoring Sheet for change in cell

    Thank's again Sixthsense. Problem now is that the code deletes data entry in column B (probably because of "If r.HasFormula = False Then r.ClearContents"). If you can fix this I' ll be very happy

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Quote Originally Posted by Lasse Moe View Post
    code deletes data entry in column B
    No it can't delete column B data since it is not defined in rMyRng range

  12. #12
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Monitoring Sheet for change in cell

    I understand. If I enter the word "Test14" in cell B14 and press enter, cell B14 is cleared. However, the formulas are filled down correctly.

    It's probably me who's doing something wrong, but I just don't know what it is.

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Monitoring Sheet for change in cell

    Oopss... it's not you, it's me and my method of coding lol

    Replace this line

    Please Login or Register  to view this content.
    With

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    11-20-2011
    Location
    Trondheim, Norway
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Monitoring Sheet for change in cell

    I've testet your code and it now works, but only for the first row. Everything is OK if I enter "Test14" in cell B14, but when I enter "Test15" in cell B15 the formulas are not copied down.

    Do you know why?

+ 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. 2 cell condition sheet/tab color change, and VBA copying with sheet
    By ohnoitsjoe89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-08-2014, 01:01 AM
  2. [SOLVED] monitoring range change
    By Tufail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 03:29 AM
  3. Cell Input Monitoring
    By parteegolfer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2006, 03:35 PM
  4. Stock monitoring work sheet.
    By momo0379 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2005, 06:12 AM
  5. [SOLVED] Change workbook sheet reference using cell A1 to change a vairable
    By Reed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2005, 04:06 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