Code to copy paste data from one sheet to other sheet in the same workbook

VanshLucifer

New Member
Joined
Jan 6, 2018
Messages
6
I am creating a break calculator which will help user to keep a track of his login hours and break time.
I have already created a the excel file
Please find below the format.
[TABLE="width: 395"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]DATE[/TD]
[TD]08/01/2018[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Login Time[/TD]
[TD]09:30:00[/TD]
[TD]Logout Time[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Break Slots[/TD]
[TD]Start Time[/TD]
[TD]End Time[/TD]
[TD]Total Login[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]15 Min slot[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD]15 Min slot[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD]30 Min slot[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD]Bio break[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD]Bio break[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Total Break Time[/TD]
[TD]00:00:00[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Total Login [/TD]
[TD]###########[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD]Actual login Time[/TD]
[TD]###########[/TD]
[/TR]
</tbody>[/TABLE]

It should not copy the entire numbers just the below details
[TABLE="width: 583"]
<tbody>[TR]
[TD]DATE[/TD]
[TD]LOGIN TIME[/TD]
[TD]LOGOUT TIME[/TD]
[TD]TOTAL BREAK TIME[/TD]
[TD]ACTUAL LOGIN HOURS[/TD]
[TD]DOWNTIME[/TD]
[/TR]
</tbody>[/TABLE]

The pasting range strats from B2 to G2

I need a VBA code to which will paste the above details in the other sheet
I will be pasting data at the day end i have already created vba whcih will take date from the system.
i just need the code to paste to the other sheet.
and it shld not over right data for every new date it shloud paste data in the below cell
say for example it for 8th jan it pasting the data from B2 to G2 range
for 9th jan it should paste data from B3 to G3 range.

urgent help required.

Please help.!!
 
Re: Need a vba code to copy paste data from one sheet to other sheet in the same workbook

Yes on the surface I believe that is doable. Create it as a new post and provide examples of the various scenarios. After you create it, add the post name to this post so I can find it.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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