+ Reply to Thread
Results 1 to 5 of 5

Change from Entirerow to Column range

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    bangalore,india
    MS-Off Ver
    Excel 2003
    Posts
    29

    Change from Entirerow to Column range

    Hi Experts,

    I'm struck!!! I have below piece of code that copies entire row while copying from one worksheet to other. I need only selected column in row to be copied. Provided the whole code where click on button indi will copy the data to new sheet based on filter in selection combo box selectmember.

    Any Help on same is very much appreciated

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    re: Change from Entirerow to Column range

    maybe change to
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    bangalore,india
    MS-Off Ver
    Excel 2003
    Posts
    29

    re: Change from Entirerow to Column range

    Hi Kalak,

    Currently suppose I have data as below:

    Row\Column A B C D E
    Row1 ID1 20 30 40 50
    Row2 ID2 70 80 90 100
    Row3 ID1 120 130 140 150

    Now if I select ID1 in my selectMember box and click on indi button, all rows of column A,B,C,D and E get copies to new excel as below.

    Say below:

    Row\Column A B C D E
    Row1 ID1 20 30 40 50
    Row2 ID1 120 130 140 150

    But I need only Column B, C and E only to be copied as shown below:

    Row\Column A B C E
    Row1 ID1 20 30 50
    Row2 ID1 120 130 150

    Can you please let me know how to make the code change for same?

  4. #4
    Registered User
    Join Date
    12-03-2013
    Location
    bangalore,india
    MS-Off Ver
    Excel 2003
    Posts
    29

    re: Change from Entirerow to Column range

    please help us in this regards at earliest.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    bangalore,india
    MS-Off Ver
    Excel 2003
    Posts
    29

    re: Change from Entirerow to Column range

    Hi All,

    I was able to solve the issue on my own..

    Solution is:

    Set FiltRng = rng.SpecialCells(xlCellTypeVisible).Range("A:N,V:AD")

    Looks simple, but struggled a lot

    Thanks to all.

+ 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. Change from Entirerow to Column range
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2013, 08:06 AM
  2. [SOLVED] Set the specific column range instead of entirerow
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-17-2013, 07:45 AM
  3. [SOLVED] Change/replace vb code .EntireRow.Insert (2007)
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2012, 07:46 AM
  4. Delete EntireRow if the data have different format on the range
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2012, 01:40 PM
  5. change vba from EntireRow to Column.Range
    By Nogi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2007, 06:28 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