+ Reply to Thread
Results 1 to 7 of 7

Copy from one worksheet into rows (days of week) on second spreadsheet.

  1. #1
    Registered User
    Join Date
    10-12-2009
    Location
    Fostoria, OH
    MS-Off Ver
    Excel 2007
    Posts
    10

    Copy from one worksheet into rows (days of week) on second spreadsheet.

    I have struggled for a day now searching and tweaking but I cannot figure this out.

    Worksheet (Daily Sales) - daily input, copy to the worksheet (Weekly Sales), Monday through Saturday. The ranges copied are not consecutive. I am using If...then...else.

    Please Login or Register  to view this content.
    Thanks for any help. I have been away from excel for awhile would really appreciate any help.

    Sandy2976
    Last edited by Sandy2976; 10-13-2009 at 12:39 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    Perhaps you could try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-12-2009
    Location
    Fostoria, OH
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    Thanks for your help. I tried running the code and I am getting Runtime error '13 Type mismatch on this portion of the code.


    Please Login or Register  to view this content.

    Sandy

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    The code is based on the following assumptions

    1 - day of interest is stored in 'Daily Sales Record'!G3

    2 - value in above cell is always one of: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
    (is this cell an actual date value formatted as dddd ?)

    The error you are receiving is because the value in the cell specified in point 1 does not contain any of the values as specified in point 2.

  5. #5
    Registered User
    Join Date
    10-12-2009
    Location
    Fostoria, OH
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    Thank you, works great.

    Sandy

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Registered User
    Join Date
    10-12-2009
    Location
    Fostoria, OH
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Copy from one worksheet into rows (days of week) on second spreadsheet.

    I was wondering if it is possible to give a brief explanation of the code. I would like to understand it so if the need arises I will be able to create the code on my own.

    Thanks,

    Sandy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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