+ Reply to Thread
Results 1 to 3 of 3

Entered a new column, successfully modified results but has one issue

  1. #1
    Registered User
    Join Date
    03-13-2017
    Location
    Pitesti, Romania
    MS-Off Ver
    LibreOffice 5
    Posts
    22

    Question Entered a new column, successfully modified results but has one issue

    Hi,

    It's a billing exel with automatic report, using macro.

    The remaining issue is that after i press macro command "Adauga date in raport" from "Factura" sheet, it adds to "Raport" sheet 30 lines of result instead only the lines that are filled in.

    What i modified:
    Added new B column in "Factura" sheet.

    Please find attatched updated document.
    The expected result is to autocomplete, in "Factura" sheet, with data only from the line 17.

    Original macro script
    Please Login or Register  to view this content.
    Need help,
    Big thank you

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Entered a new column, successfully modified results but has one issue

    There is no attached workbook, so I don't have a clue how your file looks like, but look at follwing code that you have

    Please Login or Register  to view this content.
    you find the last tow in sheet Factura (assuming it's before row 47) and I guess it's line 46. Then you loop over all rows 17-46 (exactly 30) and copy all these 30 rows to worksheet Raport. If you want just row 17 don't loop over all these rows, just use lrow=17 or directly use 17 in the Range address
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Registered User
    Join Date
    03-13-2017
    Location
    Pitesti, Romania
    MS-Off Ver
    LibreOffice 5
    Posts
    22

    Re: Entered a new column, successfully modified results but has one issue

    Hi,

    I remember attaching the file.
    Tried again to reattach, hope al good. I'll also provide it differently, here it is: https://drive.google.com/open?id=1Aj...8fYZST8KI_AYgR

    Picture this, the billing report (macro command) is supposed to enter in the raport all de lines filled in with data, from row 17 to 47. Only the lines filled in with data. Sometimes only one line (row 17) is filled with data, somethimes 4 lines (rows 17 to 20).
    Previously, the report filled in correctly, only the lines with data, now enters what you see in the attatchment.

    Please help fix the script.

    Thank you

    P.S. Seems notification when i receive reply to this thread is on, but no notification. Sorry for such a long delay for a response, i just remembered to check if someone replyed. Thank you
    Attached Files Attached Files

+ 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. Not receiving any results in cell where formula entered
    By jfranklin72106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2017, 11:22 PM
  2. [SOLVED] if data is entered in column A, column B should have date automatically entered.
    By exceltriumph in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2016, 12:02 PM
  3. [SOLVED] Search column for entered value and return results to textbox in userform
    By MIFF3436 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 06:35 AM
  4. Replies: 2
    Last Post: 11-29-2013, 04:21 PM
  5. Formula entered in cell via VBA results in #VALUE
    By Freakazoid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 04:28 AM
  6. Replies: 4
    Last Post: 10-13-2005, 04:05 PM
  7. Replies: 2
    Last Post: 05-06-2005, 04:48 PM

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