+ Reply to Thread
Results 1 to 1 of 1

Command to copy a line of entries to an archive

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Bolton, England
    MS-Off Ver
    Office 365
    Posts
    20

    Command to copy a line of entries to an archive

    Hi everyone,

    Thanks for reading this post.

    I'm relatively new to VBA and am still learning.

    I wanted to ask if I could please be given some help with a spreadsheet problem.

    Basically, I have two spreadsheets called 'Recording' and 'Archive'. They are personally designed spreadsheets I use at work to monitor my productivity and work efficiency, as well as accurately reporting my times.

    'Recording' is the spreadsheet I use to plan my entire days schedule and I use it to input figures and times. Generally, 'Recording' is a macro-enabled template spreadsheet in reality - each day, the spreadsheet is opened as a template at the moment because once everything is done in this sheet, it is being saved as single notepad files (although they open in an instant, they're becoming very cumbersome to manage and analyse especially with like 300 days worth of data stored in the folder). 'Archive' is the spreadsheet I need to use to store all the data. Because the 'Recording' sheet is a template, I'd be happy to make this a Macro-enabled spreadsheet only if there would be a problem.

    In 'Recording', there is a tab ('Compiler') that compiles data from another workbook within the spreadsheet (this has not been shown to simplify the problem because the entire transfer operation needs to be done from the 'Compiler' tab). In this particular tab, part of row 6 needs to be transferred to 'Archive'.

    There are 3 buttons in the 'Recorder' workbook. For 'ARCHIVE DATA', basically, the commands need to assume the following:

    1. Copy entries D6:AJ6 in workbook 'Compiler' of 'Recording' spreadsheet;
    2. Locate the date in 'Archive' that corresponds with the date in Line 6;
    3. Paste Line 6 in the corresponding line of 'Archive' as values;
    4. Insert 10 new dates from cell A121:A130 that succeeds the date in line 120 of the archive;
    5. Replicate the border formatting into cells A121:A131.


    In a separate command, I wanted to ask if the following VBA code could be provided for the button 'RECEIVE FLEXI'.

    1. Copy data from the worksheet 'Archive' from column H which contains the most recent entry;
    2. Paste as time in 'Recorder' workbook of the worksheet 'Recording' into cell C4.

    For the above command, it needs to strictly take the flexi time entry from the most recent entry (not from the previous day otherwise the cell could return a blank time if I was on holiday or on a weekend).


    Finally, the last button in the 'Recorder' workbook of 'Recording' says 'SAVE AS NOTEPAD'. This is a Plan B in case something happens with the above code. As the box quotes, the command needs to:

    1. Save the workbook 'Recorder' as a Notepad file, with the current date as the filename in the format ddmmyyyy, in file path xxxxxx.


    Any way I could ask for help here??!!

    My apologies I forgot to mention I am using Microsoft Excel 2010.

    Thanks again for viewing and thanks in advance for any help you could offer. Appreciate it greatly.

    - Yousuf.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel VBA Archive Monthly Account Returns to an Archive File
    By cmarenco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2016, 10:12 PM
  2. Macro to copy a line to archive sheet and delete from active sheet
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2015, 09:15 PM
  3. VBA Multiple Check box copy range to 'archive tab'
    By hydrojoe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2014, 10:24 AM
  4. [SOLVED] formula is getting altered when I archive a line of data
    By mmccra2858 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2013, 01:04 PM
  5. Copy entries to a new line
    By paulwelburn in forum Excel General
    Replies: 3
    Last Post: 04-17-2009, 02:25 PM
  6. Auto Archive LIne Items in Excel Worsheet
    By Perplexed Excel User in forum Excel General
    Replies: 0
    Last Post: 07-20-2006, 05:50 PM
  7. How do I change multi-line entries to single line entries in Exce.
    By CPOWEREQUIP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1