EdLB
asked on
How to use EXCEL VBA to paste a single value down a predetermined number of rows?
I have a part number with N steps in its routing. I want to copy the part number from cell A1 in spreadsheet "Sheet1" and paste the part number in column A of another spreadsheet "Sheet 2" on N rows. I have N in a variable called NrOpns. Also, when I go to "Sheet 2" I want to find the first non-blank row in column A and start the paste operation there.
ASKER
Attached is a file with an example of the two sheets and the data.
Copy-and-Paste-Example.xlsx
Copy-and-Paste-Example.xlsx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Michael, that's a huge help. And thanks also for getting back to me so quickly.
Here is a VBA example based on my understanding of the explaination
Open in new window
It assumes that the last two digits are the counter and that NrOpns is in cell B1. I have also attached a workbook with this Macro
Example.xlsm