+ Reply to Thread
Results 1 to 7 of 7

Event handler or a macro

  1. #1
    Forum Contributor
    Join Date
    12-08-2005
    Location
    Silicon Valley, CA USA
    MS-Off Ver
    2013 - Using 64 bit system
    Posts
    275

    Event handler or a macro

    Hi ,

    I have a workbook which gets data in several ranges on sheet1
    Like:
    A2:A10 (Time stamp); B2:B10 (temprature values) and so on.
    I like to copy data and insert in sheet2(transposed) as and when the value in any of he cells in the range changes. This has to be something ongoing.
    Please help me.

    Apprecaite your help
    Thank you
    Jaz

  2. #2
    Forum Contributor
    Join Date
    12-08-2005
    Location
    Silicon Valley, CA USA
    MS-Off Ver
    2013 - Using 64 bit system
    Posts
    275

    Any help on this please?

    Appreciate your help.

    Thanks
    Jaz

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    Depending on how the cells are populate you should be able to use the Change event of the sheet.

    Would you copy over the whole range if any cell changes or just the changed cell?

  4. #4
    Forum Contributor
    Join Date
    12-08-2005
    Location
    Silicon Valley, CA USA
    MS-Off Ver
    2013 - Using 64 bit system
    Posts
    275
    Thannk you Andy for your time.
    yes I would copy the whole range.
    I did use change event of worksheet, it works, but I am unable make it:
    transpose and also inseret at the same time. I am not aware of the syntax to put both of these actions together.
    I would like it to go to the lastrow and transpose while inserting the copied range.
    Appreciate your help.
    Tahnks
    Jaz

  5. #5
    Forum Contributor
    Join Date
    12-08-2005
    Location
    Silicon Valley, CA USA
    MS-Off Ver
    2013 - Using 64 bit system
    Posts
    275
    Andy,
    I got it working!

    Thank you
    Jaz

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    jazbath, well done on solving this, but why not post your solution in case it helps others.
    Hope that helps.

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

    Free DataBaseForm example

  7. #7
    Forum Contributor
    Join Date
    12-08-2005
    Location
    Silicon Valley, CA USA
    MS-Off Ver
    2013 - Using 64 bit system
    Posts
    275
    Roy,
    I am sorry for not posting the code I managed to make it work.
    Actually it was a very silly thing.
    I used the following to capture the change in the range

    If Not Intersect(Target, Range("A2:A10")) Is Nothing Then
    which was not a biggie. But here was the problem:

    HTML Code: 
    I was ignoring that underscore which validates the continuation to next line.

    Thank you
    Jaz

+ 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