+ Reply to Thread
Results 1 to 2 of 2

Select range of column instead of single column in the given code

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Bangalore
    MS-Off Ver
    2013
    Posts
    32

    Select range of column instead of single column in the given code

    From the below code i am able to auto fill individual columns. Can we edit this to select a range of columns? (i.e) Range of B and C column have to autofill instead of B column alone and the E column need not to be changed. This is because i have more than 20 columns to drag. so if i replicate this code for all the columns then the macro will result in a very lengthy script and makes hard to edit


    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Select range of column instead of single column in the given code

    Since the only way to "SELECT" columns if for that sheet to be onscreen, I've removed the "ws" stuff. So something like perhaps?
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Code to select dynamic range based on value in column A
    By tompee29 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2015, 05:28 AM
  2. [SOLVED] Text to Column with Single Column Transpose - VBA code help
    By i2rule in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-13-2014, 05:09 PM
  3. [SOLVED] Select Case Code for Column A Values to Populate Results in Column B in Same Row
    By excelforumkeys in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-28-2014, 05:22 PM
  4. [SOLVED] VBA: Select Range of Cells in one Column, Merge, and then proceed to Next Column
    By magasi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 12:17 PM
  5. Replies: 12
    Last Post: 12-28-2012, 07:49 PM
  6. Need code to select a range of cells based on criteria in column H
    By davekippen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2011, 01:40 PM
  7. Converting a (single column) range into the column number
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2010, 01:29 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