Results 1 to 19 of 19

Customize code for a macro that copies three rows to a new workbook based on a condition

Threaded View

  1. #13
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Customize code for a macro that copies three rows to a new workbook based on a conditi

    Philips,

    Strange, the code works fine on some sample data that I have compiled myself. Are you sure about the line number in error? Can you see (by hovering your cursor over the variables) what the values are at the moment of the error?

    or replace the line with

    If .Cells(pvt_lng_RowNumber, pvt_lng_ColumnNumber).Value <> "" Then
    Not as nice, but maybe less sensitive to problems in case for formula errors and so on
    Last edited by OllieB; 01-04-2013 at 05:29 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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