+ Reply to Thread
Results 1 to 13 of 13

Worksheet_Selection change - Linking different variables

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Worksheet_Selection change - Linking different variables

    Dear Excel help

    The first part of this code works fine but the last part is not, would anyone be able to offer any suggestions please?

    Please Login or Register  to view this content.

    This is the part that is not working correctly.


    Please Login or Register  to view this content.
    Would appreciate any help/pointers.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Hi Mumps1

    Thanks for taking a look, this is now changing the cell value in the range L47 but to 0. I have formulas in cells I17:I21 could this be why?


    Please Login or Register  to view this content.
    Last edited by michelle 1; 09-07-2016 at 12:02 PM.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    Do you want to copy the formulas only from cells I17:I21 or the values only?

  5. #5
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Hi

    Just the values in the cells please.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    Try:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Hi Mumps1

    Have updated but now unable to type in cells C13:D13 or F12:G13.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    It is always easier to help and test possible solutions if we could work with your actual file. Perhaps you could post a copy of your file. Include a detailed explanation of what you would like to do referring to specific cells and worksheets. If the workbook contains confidential information, you could replace it with generic data.

  9. #9
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Hi

    I have atatched the file, thankyou for looking. Hopefully it will make sense when you open it.

    I have more message boxes but these work fine its just the updating in cells L47 in teh calculator sheet thats causing an issue, its just not
    udating.

  10. #10
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    Sorry but I don't see the attachment.

  11. #11
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Appologies, please find attached
    Attached Files Attached Files

  12. #12
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Worksheet_Selection change - Linking different variables

    I had a look at your file and I find it difficult to determine exactly what you are trying to do. There are many rows which are hidden and there are many cells that are merged. Merged cell almost always cause problems for Excel. The first thing I would do is unmerge all the merged cells. Then the macro can reference one cell at a time instead of a range. Unhide all the rows and make them all the same size so that they are visible. Also, include the entire data set not just a sample part of it. Start from the beginning and give a step-by-step explanation of what you are trying to accomplish referring to specific cells and sheets. Attach the revised file and we'll have another try at it.

  13. #13
    Forum Contributor
    Join Date
    07-02-2013
    Location
    abbots langley
    MS-Off Ver
    Excel 2010
    Posts
    316

    Re: Worksheet_Selection change - Linking different variables

    Thanks will tidy up and re attach file in its entirety.

    Thansk for helping me out with ths one.

+ 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. Loop Through List to Change Variables
    By racer25 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2016, 02:48 PM
  2. Can't get Worksheet_Selection Change to work
    By twills in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2010, 08:10 PM
  3. Query linking many variables
    By HammerTime in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-06-2010, 07:10 PM
  4. Worksheet_Selection Change problem
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-04-2010, 06:17 PM
  5. Change Variables on the fly
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-07-2009, 09:04 PM
  6. Worksheet_Selection Change Event
    By c991257 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2006, 08:38 AM
  7. Replies: 1
    Last Post: 07-07-2005, 10:05 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