Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Question on VBA Insertion of Additional Sheet

Hi, Everyone -

I'm continuing to work on our agency Payroll Sheet.... seems like a
"never-ending battle".... ;)

I have a quick couple of questions that I was hoping to obtain some
imput on:

Within my Payroll Sheet, I have what is called a Data Entry Sheet
where the employee manually enters their hours (both paid and Leave),
and the numbers are fed over to the actual Payroll Sheet where
everything is more or less calculated out and summarized. We now have
an employee that will need a SEPERATE Data Entry Sheet for each
project he works on, so that he will have one actual Payroll Sheet but
15 seperate Data Entry Sheets. What I would like to do is to set up a
VBA button that, when pressed, XL will copy the original blank Data
Entry Sheet (along with all formatting and security settings) and
insert the copies sheet as a new sheet. Can someone help me out with
the code strips to make this possible?

Thanks.

Frank
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Question on VBA Insertion of Additional Sheet

Hi Frank,

I don't know if I can be helpful here, but I had a question:

You wrote:
I have what is called a Data Entry Sheet
where the employee manually enters their hours (both paid and Leave),
and the numbers are fed over to the actual Payroll Sheet


How are the numbers fed over to the actual payroll sheet?
If you copy the Data Entry Sheet 15 times, how will the payroll sheet
now about them and add them up?

Dan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Question on VBA Insertion of Additional Sheet

On Apr 28, 4:13*pm, dan dungan wrote:
Hi Frank,

I don't know if I can be helpful here, but I had a question:

You wrote:
I have what is called a Data Entry Sheet
where the employee manually enters their hours (both paid and Leave),
and the numbers are fed over to the actual Payroll Sheet


How are the numbers fed over to the actual payroll sheet?
If you copy the Data Entry Sheet 15 times, how will the payroll sheet
now about them and add them up?

Dan



Hi, Dan -
Thanks for the quick response. I'd be the VERY FIRST to admit I'm a
novice at programming, so this may seem extremely rudamentary. The
tool that I have created as "Test" works like this: I manually created
5 new sheets by Cntrl+C the original Data Entry Sheet so that now I
have (1) the summary Payroll Sheet itself where it takes the daily-
entered hours off the original Data Entry Sheet; (2) the original Data
Entry Sheet; and (3) the 5 new Data Entry Sheets.

The way it KIND OF works is that the employee would enter hours on the
individual Data Entry Sheet, for each seperate project which would
then feed over into the original Data Entry Sheet and the hours would
get "summed" up for each day. Then those hours would feed over into
the Payroll Sheet itself.

I can email you a copy if you'd like.......... Does this explain it a
little better?

Thanks again.
Frank
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Question on VBA Insertion of Additional Sheet

Hi Frank,

Well, it seems that you can manually add the sheets you need, but you
want a macro to do it, right?

I would start with recording the macro while you manually insert the
new sheets.

Then let's see what code you get.

Dan
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
additional question on camera ... Miri Excel Discussion (Misc queries) 0 October 6th 09 10:31 AM
Can I allow insertion of pictures into a protected excel sheet? DCC Excel Discussion (Misc queries) 1 August 27th 08 09:08 PM
picking correct number with < additional question scott Excel Discussion (Misc queries) 1 October 22nd 07 05:48 PM
Master Sheet Row Insertion Need Help Excel Discussion (Misc queries) 1 December 23rd 04 05:10 PM
Selection change: additional question Maria[_6_] Excel Programming 1 March 2nd 04 12:59 PM


All times are GMT +1. The time now is 10:01 AM.

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"