Loop Copy Cell from Excel and Paste in BlueZone

king_kratos

New Member
Joined
Oct 11, 2013
Messages
29
Hello,

I know how to loop and copy and paste data from one worksheet/workbook to another using VBS, but I need to copy cell content from an Excel workbook and paste into BlueZone (Mainframe Host Screen) using VBS. Does anyone know how to do this?

For example, I have a worksheet that has 2 rows of data (model and serial number). I will use the same worksheet each time I do this and will have varying numbers of rows (one day may be 100 rows, the next may be 1000, and the next may be 10000). I need to loop through the data and copy cell A1 to a specific location in BZ, then copy cell B1 to another specific location in BZ and continue the loop until all data is complete. After every 8th individual copy and paste, I need to sent the F8 key to BZ to go to the next screen (BZ .sendkey function).

My guess is that I will have to invoke the script in the BZ environment so I would also need to tell it to use the active workbook and sheet.

I know this is more advanced and incorporating another program, but is this something anyone here can help me figure out?

Thanks,
Kratos
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,214,971
Messages
6,122,525
Members
449,088
Latest member
RandomExceller01

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