+ Reply to Thread
Results 1 to 6 of 6

Skip specific column of VBA array

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Skip specific column of VBA array

    Hi

    I have a 5 column and 20 rows VBA array in memory

    What I want is to print the array on the sheet but skipping the 3rd column of the array

    means if I print the full array on the sheet , the range address will be
    Range("A1:E20")

    While I want to print by skipping its 3rd column and the address on sheet should be

    Range("A1:D20")
    Teach me Excel VBA

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Skip specific column of VBA array

    You could write the entire array then delete the cells containing the third column.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Skip specific column of VBA array

    Try this line
    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

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Skip specific column of VBA array

    @sir shg
    I have a very narrow space and from the A21 some other data starts. so can't do that

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Skip specific column of VBA array

    Thanks YasserKhlil

    It works. Just had to transpose it

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

    Re: Skip specific column of VBA array

    You're welcome. Glad I can offer some help

+ 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: 1
    Last Post: 03-14-2017, 10:21 PM
  2. How to skip rows in an array with the following formula? Need Help
    By frawji in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2016, 09:37 PM
  3. Replies: 8
    Last Post: 12-21-2015, 03:44 PM
  4. [SOLVED] How to skip sheets in array
    By majime01 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-19-2015, 09:05 PM
  5. [SOLVED] return a specific row of a column in an array which contains the value match
    By macduff98 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-23-2012, 06:50 PM
  6. Returning a Specific Cell's Column Header from a Row in an Array
    By zpenacho in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2011, 07:29 PM
  7. Getting a specific value out of a column or array
    By dclarke in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2010, 04:34 PM

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