Data Capture - split into multiple lines

BILLYBOB1972

New Member
Joined
Jan 7, 2016
Messages
24
Office Version
  1. 2016
Platform
  1. Windows
Hi All

Can anyone point me in the right direction with this one?

I am capturing time data in a vba form. The data is being entered as number of hours and to make it easier the number of days is also captured. I am then using add to functionality to post into an upload sheet for a secondary system. Unfortunately the secondary system cannot deal with 2 number inputs so I need to be able to split the output over multiple lines

e.g

Ref. Hours. Days
123456. 5 4

This needs to slit into 4 lines e.g

Ref. Hours
123456. 5
123456. 5
123456. 5
123456. 5

Is this possible? Thanks in advance.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi there. In your 'add to' section, you would need to create a loop to write the same data 4 times. Assuming your data is in A1 to C2 it would look something like:
Code:
daycount=range("C2").value
For daynum=1 to daycount
' here you have your add to code just adding columns A and B
Next daynum
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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