Copy, Modify, Paste, Send to CNC machine

camle

Board Regular
Joined
Jan 10, 2013
Messages
216
I have come up with an excel sheet to program a CNC machine at work. It reads a database (Main Data Mag Cyl) for different prints.
My question is: I need a VB code to copy A7:C616 and copy it to sheet name Edit - Send with (tabs and empty spaces) removed. From here I would like to send it to the com port to the CNC machine, also a pop-up windows asking if the machine is ready.
Hope you don't mind helping. Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Sorry camle, I thought you wanted the data deleted from the write string (which is what ignoring the line did) rather than needing it removed from the sheet. Oh well, John_w got you sorted.
 
Upvote 0
test is this thing going to the right place in the thread

ok that worked very good.
I'm trying to understand the code.......
can you give me the code to get the cells and send them to the port?

I split your code so that I can give them a chance to edit it before it goes to the machine.
now I need to send what has been edited.
Thanks
 
Upvote 0
Everything after the line asking "is the machine ready" is the writing of the data so you could run that after the edit. If you break that into a second sub don't forget you''ll have to redefine the variables sendsheet and lastrow.
 
Upvote 0
Everything after the line asking "is the machine ready" is the writing of the data so you could run that after the edit. If you break that into a second sub don't forget you''ll have to redefine the variables sendsheet and lastrow.

Thanks so much
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,225
Members
453,025
Latest member
Hannah_Pham93

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