+ Reply to Thread
Results 1 to 10 of 10

Copy filtered data, not header

Hybrid View

melbri Copy filtered data, not header 12-07-2010, 02:23 PM
JBeaucaire Re: Copy filtered data, not... 12-07-2010, 03:54 PM
melbri Re: Copy filtered data, not... 12-07-2010, 04:04 PM
JBeaucaire Re: Copy filtered data, not... 12-07-2010, 04:12 PM
melbri Re: Copy filtered data, not... 12-07-2010, 04:23 PM
JBeaucaire Re: Copy filtered data, not... 12-07-2010, 04:53 PM
melbri Re: Copy filtered data, not... 12-07-2010, 05:01 PM
JBeaucaire Re: Copy filtered data, not... 12-07-2010, 05:09 PM
melbri Re: Copy filtered data, not... 12-07-2010, 05:52 PM
JBeaucaire Re: Copy filtered data, not... 12-07-2010, 07:22 PM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy filtered data, not header

    1) The order the sheets exist in the workbook is irrelevant, the array is addressing them by name so it can find them wherever they may be. Whatever you did with the sheets fixed the spelling errors is most likely what occurred, or the wrong workbook was "active" when you tested... I do that a lot.

    2) When that error occurs, what is the value of LR? What is the actual LR of visible data on the current ws being parsed?

    Click DEBUG
    Press Ctrl-G to open the Immediate window
    Enter these commands:

    ? ws.Name

    ? LR

    No chance I can look at what you're looking at?
    _________________
    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!)

  2. #2
    Registered User
    Join Date
    11-05-2010
    Location
    Calgary
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Copy filtered data, not header

    For " ? ws.Name" I get KWT and for "? LR" I get 847.

    On this ws, there is 847 rows of data, all of which are filtered out at this time.

    UPDATE: I now have data in KWT and the macro works great. For some reason, it does not like KWT with no data, even though SWS, KTO and KRP have no data.
    Last edited by melbri; 12-07-2010 at 05:07 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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