Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default time keeping

Hi
I am trying to set up a time sheet for a daycare facility.
I want to use a slider to pick the time kids are dropped
off and another slider for when they are picked up.
I have set up the sliders and they work fine. Now I want
set up a macro to copy the two times and paste special to
each date: For example:

if the slider puts 6:15 am in cell B1. how do I get
a macro to copy B1 to D1(active Cell) as paste special
and then move to E1(relative to D1) and copy(paste special) B2
to E2. Then the person can go to the next cell (D2 for example)
and run the macro again after making his new time choices which
will, of course, enter new times in B1 & B2?

A B C D E
1 6:15am 1 active cell then move here
2 3:30pm 2


I hope this makes sense?! Thanks Jim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default time keeping

Jim,

Sub test()
ActiveCell.Offset(0, -2).Copy ActiveCell
ActiveCell.Offset(0, 1).Select
ActiveCell.Offset(1, -3).Copy ActiveCell.Offset(1, 0)
End Sub


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Jim" wrote in message ...
Hi
I am trying to set up a time sheet for a daycare facility.
I want to use a slider to pick the time kids are dropped
off and another slider for when they are picked up.
I have set up the sliders and they work fine. Now I want
set up a macro to copy the two times and paste special to
each date: For example:

if the slider puts 6:15 am in cell B1. how do I get
a macro to copy B1 to D1(active Cell) as paste special
and then move to E1(relative to D1) and copy(paste special) B2
to E2. Then the person can go to the next cell (D2 for example)
and run the macro again after making his new time choices which
will, of course, enter new times in B1 & B2?

A B C D E
1 6:15am 1 active cell then move here
2 3:30pm 2


I hope this makes sense?! Thanks Jim




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default time keeping

Never mind I figured it out!! Thanks anyway Jim


"Jim" wrote in message ...
Hi
I am trying to set up a time sheet for a daycare facility.
I want to use a slider to pick the time kids are dropped
off and another slider for when they are picked up.
I have set up the sliders and they work fine. Now I want
set up a macro to copy the two times and paste special to
each date: For example:

if the slider puts 6:15 am in cell B1. how do I get
a macro to copy B1 to D1(active Cell) as paste special
and then move to E1(relative to D1) and copy(paste special) B2
to E2. Then the person can go to the next cell (D2 for example)
and run the macro again after making his new time choices which
will, of course, enter new times in B1 & B2?

A B C D E
1 6:15am 1 active cell then move here
2 3:30pm 2


I hope this makes sense?! Thanks Jim




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 1 year and keeping time as well Hugh G. Johnson Excel Worksheet Functions 5 August 20th 08 06:08 PM
TIME KEEPING BY TENTHS Pam Excel Worksheet Functions 2 June 6th 08 12:07 AM
Help with Time Keeping Formula Barefoot Mark Excel Worksheet Functions 1 March 11th 06 12:54 AM
Time format to number while keeping value Jim Excel Worksheet Functions 2 January 12th 06 05:45 PM
Time Keeping Timeless Excel New Users to Excel 3 December 4th 05 01:43 AM


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"