COPYING DATA FROM EXTERNAL ARCHIVE

fher9728

New Member
Joined
Jan 9, 2020
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a table were I need to paste numbers from external archives, not from my workbook, the thing that I have these columns:
# -BUPC - CCant. -DDescripción - ECod. SAP -FCantidad -G

I need two things, when i paste data to upc if I only paste one upc for example I want that in column #-B shows the first number - 1, and if I paste two values of upc I want it to show in Colum #-B 1, 2 and that successively, the other thing i want to do is that if i a paste a value in Column Cant. -D I want it to show the same exact value in column cantidad-F in a consecutive way, I can do it with formulas but I need to be with vba code, and I've been trying and I can't get a solution to this, this is an example of what i want,

1586400810705.png


please if you can help me,

thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top