+ Reply to Thread
Results 1 to 5 of 5

ICell Selections into Range Argument

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    ICell Selections into Range Argument

    Hello All,

    I have a Macro that executes code on all of the (contiguous and non-contiguous) cells the user has selected AND a fixed cell that I have set at A4000.

    For example, the user may have selected B2 and B4. The fixed cell is at A4000.

    How do I set the argument/code up so that it takes the user selected cells and the fixed cell?

    Please Login or Register  to view this content.
    The cells always change, so B2 and B4 cannot be hard coded! How do I write the above statement so that it plugs in B2 and B4 (or however many cells are selected) in addition to cell A4000?

  2. #2
    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,428

    Re: ICell Selections into Range Argument

    Please Login or Register  to view this content.

    Regards, TMS
    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


  3. #3
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: ICell Selections into Range Argument

    Wow.

    Thanks.

  4. #4
    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,428

    Re: ICell Selections into Range Argument

    You're welcome. Thanks for the rep.

  5. #5
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: ICell Selections into Range Argument


+ 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. Multiple selections from a pick list - only unique selections (no repeats) ?
    By opsayo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 06:25 PM
  2. Range with Cells as an argument
    By ctor in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-03-2009, 07:07 AM
  3. .Range cant take long argument
    By christianlebe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2008, 12:06 AM
  4. Date Range Selections
    By Jennybob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2007, 02:24 PM
  5. [SOLVED] Function (array argument, range argument, string argument) vba
    By Witek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2005, 11:07 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