I am trying to figure out how to copy a range of data from a open file WITHOUT naming a file path. The file path varies, and is a temp file downloaded from our system. I would only like to apply this macro only when a file called pricedownload.csv is open
My work team each downloads a pricing file each day and I have another file that applies a margin by customer. We download a file column A2:J and paste it into the work
1.) Check to see if "pricedownload.csv" is open
A. If No, Error "please open pricedownload file first"
B. If Yes, Step 2
2.) Find Range in "pricedownload.csv" file, using the active sheet starting in A2 and end in column J (rows vary)
3.) Select and then Copy
4.) Go to destination workbook "Rack Pricing" and paste values in A3.
I am new to VBA, I know logically how it should work but am clueless on the code.
My work team each downloads a pricing file each day and I have another file that applies a margin by customer. We download a file column A2:J and paste it into the work
1.) Check to see if "pricedownload.csv" is open
A. If No, Error "please open pricedownload file first"
B. If Yes, Step 2
2.) Find Range in "pricedownload.csv" file, using the active sheet starting in A2 and end in column J (rows vary)
3.) Select and then Copy
4.) Go to destination workbook "Rack Pricing" and paste values in A3.
I am new to VBA, I know logically how it should work but am clueless on the code.