+ Reply to Thread
Results 1 to 2 of 2

How to set Range based off Target Range?

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Bangkok, Thailand
    MS-Off Ver
    2013
    Posts
    17

    How to set Range based off Target Range?

    I want to do something like this:

    Private Sub Worksheet_Change(ByVal Target As Range)
    * * *Dim affectedRange As Range
    * * *affectedRange = Target + 6 columns
    End Sub

    Here's an example of what I mean by "+ 6 columns": If the target range was C4, then affectedRange should be C4:I4. If target was C4:E8 the affectedRange should be C4:L8.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to set Range based off Target Range?

    Hello
    May be
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. Replies: 5
    Last Post: 12-16-2014, 05:47 PM
  2. Increase Array Range Based On Target Cell
    By jackgan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-08-2014, 02:22 PM
  3. [SOLVED] SUM Values based on a Target Cell Value Range
    By navik_pathak in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-06-2013, 12:28 PM
  4. [SOLVED] Worksheet_Change(ByVal Target As Range) - set to only update when 3 target cells changed?
    By trillium in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 06:40 PM
  5. Replies: 0
    Last Post: 10-15-2012, 10:38 AM
  6. Vba to hide rows based on a range and target value of another worksheet
    By JamesFinch in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2012, 03:14 AM
  7. Worksheet_CHange (ByVal Target as Range) when target is formula cell
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 07:00 PM

Tags for this Thread

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