+ Reply to Thread
Results 1 to 5 of 5

Selecting cells in next/previous column depending on current selected cells

  1. #1
    Registered User
    Join Date
    12-02-2017
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    55

    Selecting cells in next/previous column depending on current selected cells

    Hello.

    My current code is this:
    Please Login or Register  to view this content.
    If I have values in fx G1, 2, 3 & 4, then the first line of the code will select G1:G4.
    I want the second line to select F1, 2, 3 & 4 as well. But as it is now, it will instead select F1 and G1. I see how the ActiveCell is the problem, since no matter the amount of selected cells, only one will be the active one.

    Is it possible to have the code select cells in column F dependent on the selected cells in G, and not just the active cell?

    Cheers.

  2. #2
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Selecting cells in next/previous column depending on current selected cells

    Please Login or Register  to view this content.
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

  3. #3
    Registered User
    Join Date
    12-02-2017
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    55

    Re: Selecting cells in next/previous column depending on current selected cells

    Quote Originally Posted by daboho View Post
    Please Login or Register  to view this content.
    That was easy and simple. Thank you so much!

  4. #4
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Selecting cells in next/previous column depending on current selected cells

    Glad for.help dont forget mark case as solved

  5. #5
    Registered User
    Join Date
    12-02-2017
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2016
    Posts
    55

    Re: Selecting cells in next/previous column depending on current selected cells

    Quote Originally Posted by daboho View Post
    Glad for.help dont forget mark case as solved
    Already done

+ 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] makes cells populate or remain blank depending on what previous cell has in it.
    By cwrice in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-18-2018, 04:09 PM
  2. Selecting cells based on current cells selected?
    By ChrisXcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2017, 11:22 PM
  3. Changing cells depending on previous column
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2017, 08:56 PM
  4. Locking or Unlocking validated cells depending on the previous cell
    By biajw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2014, 11:36 AM
  5. [SOLVED] Move selected cells to previous row
    By pmolsen in forum Excel General
    Replies: 6
    Last Post: 08-31-2012, 11:14 PM
  6. VB - Writes current month and previous months in cells
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2009, 06:07 PM
  7. Selecting equation based on previous cells result
    By boostjunkie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2007, 04:58 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