+ Reply to Thread
Results 1 to 2 of 2

Copy Data from Sheet to Sheet

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    London, England
    MS-Off Ver
    Excel 2016 in Win 10
    Posts
    97

    Copy Data from Sheet to Sheet

    I have a sheet [Sheet4(Week Roster)] that is supposed to show the Week for the date in Cell B2 when a button [CommandButton1] is clicked

    It should look in Sheet5 [Full Roster] at Row 5 and then Copy the cells from row 5 to the last used row for the next 7 days [Monday to Friday] and then paste them into Sheet 4 at H5 in Sheet4

    A2 in Sheet5 has a formula to match the dates in Sheet4 [=MATCH('Input Sheet'!$B$4,5:5,0)]
    A3 in Sheet5 has a formula to ensure the user has chosen a date which is a Monday [=IF(INDEX(4:4,A2)="Monday",TRUE, FALSE)]

    The code I have is:
    Please Login or Register  to view this content.
    This fails with the error message: Run-time error '13': Type mismatch at pos = Sheet5.Range("A2").value

    This works on an old version of the file where I had columns B:F [other data] followed by dates was in both sheets but now columns B:F [other data] do not appear in Sheet 5 it just starts with dates in Column C

    Can anyone help here??

    Thanks for looking

    Happy to share file is required

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Copy Data from Sheet to Sheet

    What is in A2 when you get the error?

+ 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. Replies: 1
    Last Post: 02-09-2017, 05:36 AM
  2. Replies: 9
    Last Post: 06-27-2016, 01:02 AM
  3. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  4. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 AM
  5. Copy Sheet / Create & Name New Sheet / Insert Before a Sheet / Paste Data
    By thinkspac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2012, 02:27 PM
  6. [SOLVED] Macro to Copy Data from one Sheet A to Sheet B based on value in cell on sheet A
    By scass in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2012, 07:21 PM
  7. Copy data from one sheet (Fixed Cells and sheet) to another sheet
    By RCatman23 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-21-2009, 12:56 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