+ Reply to Thread
Results 1 to 2 of 2

Selecting all data in specific columns without selecting adjacent column.

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

    Selecting all data in specific columns without selecting adjacent column.

    Hello All,

    I thought I already posted the following, but I cannot find it and did not receive a confirmation e-Mail.

    Using VBA, I need to Select A1:C14.

    The problem is that A1:C14 contains blank cells, and there is also an adjacent column D that I do not want to copy.

    So, UsedRegion and CurrentRegion aren't doing it for me. (It selects Column D too.)

    Obviously, this is an example...the real data set is an export and varies in size.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,445

    Re: Selecting all data in specific columns without selecting adjacent column.

    Option Explicit

    Sub test()
    Range("A1:C" & Range("C" & Rows.Count).End(xlUp).Row).Select
    End Sub

+ 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] Issue w/ Current Region, Select 3 Columns of Data without selecting adjacent columns
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 02:57 PM
  2. Selecting data in columns dependant on specific criteria
    By Kenno9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-26-2013, 10:39 AM
  3. Selecting non-adjacent cells from different rows/columns
    By excelactuary in forum Excel General
    Replies: 4
    Last Post: 03-08-2013, 11:10 AM
  4. Replies: 7
    Last Post: 08-25-2012, 01:25 PM
  5. Selecting rows of data with specific text in a column?
    By Buckster_uk in forum Excel General
    Replies: 1
    Last Post: 01-29-2007, 10:02 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