Solved

Excel - Auto populate between workbooks

Posted on 2008-10-21
7
433 Views
Last Modified: 2012-05-05
I have data that is to be entered into the 'New Sheet' worksheet of the attahed file. What i have at the moment is when you type in the site name it creats a copy of thetemplate with the site name entered into cell H3. what i would also like it to do is enter the Start date into 'J6' and the week number into cell 'N6' of the copied template. Is it also possible to add a column inbetween B & C of the template that will then show the week commencing date next to each employee name without messing all the code up?
Weekly-Pay-Schedule-Complete-3.xls
0
Comment
Question by:Carlandrewlewis
  • 4
  • 3
7 Comments
 
LVL 13

Expert Comment

by:WJReid
ID: 22768274
Hi,
Would you llike to try the following. I can't run it fully because of the links in your file.

Bill
Weekly-Pay-Schedule-Complete-3-1.xls
0
 

Author Comment

by:Carlandrewlewis
ID: 22768432
Thats nearly there but i did have a macro that would automatically work out the week start date from the commencment date that would be entered. Also is it possible to have the week commencing date auto to c11:c123??  
0
 
LVL 13

Expert Comment

by:WJReid
ID: 22768703
Hi,
I have added a Select Case statement, depending on the Start Date, it will calculate the Week Commencing Date. I have assumed here that your week begins on a Monday, if it is something other, let me know and I can change the code to suit.
You could also use the Weeknum formula in column D of the New Sheet, rather than the formula you have in. I have shown the formula in cell E2.
When you enter the Start Date, it will then add the sheet.

Bill
Weekly-Pay-Schedule-Complete-3-1.xls
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:Carlandrewlewis
ID: 22768867
Bill thats looking perfect one last thing, is it possible to have the week commencing date auto to c11:c123 in the duplicated sheet?
0
 
LVL 13

Expert Comment

by:WJReid
ID: 22768949
Hi,
Sorry, there is a line of code;
ActiveSheet.Range("B11:B123").Value = dWeekComm
Can you change it to:
ActiveSheet.Range("C11:C123").Value = dWeekComm

Bill
0
 
LVL 13

Accepted Solution

by:
WJReid earned 500 total points
ID: 22769139
Hi carlandrewlewis,

I have added a few things to your template, just cosmetic for appearance, so that all of the value errors and zero values will not show. I also added conditional formatting in column C of the Template so that the text will be white unless there is a name in column D.

Bill
Weekly-Pay-Schedule-Complete-3-1.xls
0
 

Author Closing Comment

by:Carlandrewlewis
ID: 31508330
Bill sorry for delay, that all looks perfect thanks for your help!! Just one last thing, im gonna post a question regarding timesheet formulas, can you have a look at it for me, i explain what i'm trying to do in the post!!! Thanks again, great help!!!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now