+ Reply to Thread
Results 1 to 2 of 2

Want to expand range by one column to left and right

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Norman, OK
    MS-Off Ver
    2013
    Posts
    6

    Want to expand range by one column to left and right

    Hi,

    I wrote a macro that creates a range of every entry in a list of statement items that matches a certain keyword. The list is formatted with date in the A column, then item description (what is selected in the range variable), then transaction amount.
    The ultimate goal is to sort everything that matches the keyword into a different column, so it seems like one easy way to do this is to expand the selection of each description to include the cells to the left and right of it, then move that new range.
    Can somebody instruct me in how I would expand it like that? Or if there is a much better way to accomplish this, feel free to try to explain it. I'm relatively new to VBA and programming so I apologize for my ignorance.

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Want to expand range by one column to left and right

    Quote Originally Posted by connorwb93 View Post
    so it seems like one easy way to do this is to expand the selection of each description to include the cells to the left and right of it, then move that new range.
    Perhaps

    Please Login or Register  to view this content.

+ 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: 6
    Last Post: 01-02-2012, 07:44 PM
  2. Left Lookup in a range instead of a column
    By MJury in forum Excel General
    Replies: 1
    Last Post: 08-23-2009, 11:41 PM
  3. Getting Range to move 1 column left and resize by 1
    By mozart in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2005, 04:05 AM
  4. [SOLVED] Cannot Expand Named Range - when size of the Range exceeds
    By Snig in forum Excel General
    Replies: 1
    Last Post: 07-07-2005, 09:05 AM
  5. left far column plus and minus signs that expand rows
    By Randy Starkey in forum Excel General
    Replies: 2
    Last Post: 06-17-2005, 04:05 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