<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - MACRO WILL NOT COPY CELLS VALUES WHOSE CELLS HAVE VLOOKUP INDEX>2"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131462">131462</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MACRO WILL NOT COPY CELLS VALUES WHOSE CELLS HAVE VLOOKUP INDEX>2
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.1.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>romrodz77@outlook.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I made a macro to copy table A and paste its values (paste special) into table
B.
Those cells having a vlookup function with index>2 will not be copied.

I have attached a spreadsheet with a macro that copies the values from the
table B (range AT18 BF247) into the table A on the left (range B18 N247).
The macro is activated by the button UPDATE. Look at the brown columns in table
A on the right, press the button at B210 and look at the brown columns in table
B. Those values whose origin have vlookup functions with indexes > 2 are
missing. To check this bug, modify the indexes to 1 or 2, press the button and
it will work.
(some cells in the brown columns are just values, =strings, etc, to check the
hypothesis).

Steps to Reproduce:
1. OPEN THE ATTACHED DOCUMENT (ALLOW MACROS)
2. PRESS THE "UPDATE" BUTTON.
3. BROWN COLUMNS HAVE NOT BEEN COPIED IF THEIR ORIGIN HAVE A VLOOKUP FUNCTION
WHOSE INDEX IS >2

Actual Results:
 BROWN CELLS IN ROWS 218 AND 227 ARE BLANK.

Expected Results:
 BROWN CELLS IN ROWS 218 AND 227 SHOULD HAVE THEIR VALUE COPIED.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Versión: 6.4.1.2 (x64)
Id. de compilación: 4d224e95b98b138af42a64d84056446d09082932
Subprocs. CPU: 8; SO: Windows 10.0 Build 18363; Repres. IU: GL; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: CL</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>