+ Reply to Thread
Results 1 to 5 of 5

Worksheet Selection change for many cells

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007, 2010, 2011 Mac. 2013,2016. I use 2011 and 2016 the most
    Posts
    90

    Worksheet Selection change for many cells

    This code only works for one cell. I'm trying to make this code work for multiple columns. Example: if I select cell D29 and enter a 0, I would be the contents of cell U3 to be copied and pasted into cell D33 and so on down the columns until I reach the last column which is N. I may only select one column to change or I may select more than one column, but one at a time. I've tried many ways to accomplish this over the last two days and I would like any help I could get. Thanks, Jim

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 11-02-2015 at 12:41 AM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Worksheet Selection change for many cells

    Hello Jamesera27,

    More examples of what you are trying to do are needed. If you have a workbook with the code and data described in your post, please post it.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,418

    Re: Worksheet Selection change for many cells

    Please Login or Register  to view this content.

    Regards, TMS
    Last edited by TMS; 11-02-2015 at 05:31 AM. Reason: Add: Application.EnableEvents = False/True
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    04-28-2014
    Location
    Florida
    MS-Off Ver
    Excel 2007, 2010, 2011 Mac. 2013,2016. I use 2011 and 2016 the most
    Posts
    90

    Re: Worksheet Selection change for many cells

    Sorry Leith and thank you for informing me of exactly how to post. In the future i will do exactly that, with other workbooks. Lucky for me TMS understood what I was trying to do and helped me out...Some Workbooks, containing sensitive information just can't be published. Thanks again, Jim

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,418

    Re: Worksheet Selection change for many cells

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. [SOLVED] Change selection of cells to selection of rows
    By olwy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2014, 11:38 AM
  2. [SOLVED] Need to have 2 worksheet selection.change rules in 1 worksheet
    By winwall in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-14-2014, 04:46 PM
  3. ISSUE: Using the multi selection in list box to change cells in worksheet.
    By mido609 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2013, 08:37 PM
  4. [SOLVED] WorkSheet Selection Change and Vlookup
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2013, 09:55 PM
  5. [SOLVED] Change Worksheet based on ComboBox selection
    By dagindi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2012, 10:19 AM
  6. Worksheet selection change
    By sigfreid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2011, 06:16 AM
  7. macro to change cells on change of selection
    By scottwilsonx in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-13-2005, 04:14 AM

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