+ Reply to Thread
Results 1 to 5 of 5

excel vba to paste range of dates

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007
    Posts
    13

    excel vba to paste range of dates

    Hi,

    I want to paste range of dates in excel cell. So lets says, i provide my input as
    Start date - 01/01/2013
    End date - 01/20/2013

    So, my vba should calculate the dates, and paste from 01/01/2013, 01/02/2013,01/03/2013....01/20/2013. Also, i would like to find the days whether it is a sunday or monday. In case it is sunday or saturday, i would like to color code that cell.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: excel vba to paste range of dates

    Hi Gourav, try this (see attached as an example):

    Please Login or Register  to view this content.
    Cheers, berlan
    Attached Files Attached Files

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: excel vba to paste range of dates

    Hi Gourav,

    Here's a start:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    02-03-2012
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: excel vba to paste range of dates

    hi berlan this looks good.
    Only couple of things.

    a) can u transpose while pasting the date
    b) can you add day as well on top of the date

  5. #5
    Registered User
    Join Date
    02-03-2012
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: excel vba to paste range of dates

    hi berlan this looks good.
    Only couple of things.

    a) can u transpose while pasting the date
    b) can you add day as well on top of the date

+ 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. Copy and paste Excel range as picture into Outlook email body using excel vba
    By ExcelDoc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2016, 09:29 PM
  2. How to paste special as an Excel worksheet an Excel Range into Outlook?
    By charlesh3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2013, 07:52 PM
  3. Excel keeps converting numbers to dates on copy/paste
    By zazu88hike in forum Excel General
    Replies: 3
    Last Post: 01-27-2009, 02:36 PM
  4. [SOLVED] Paste a named range to another range in Excel
    By David Jean in forum Excel General
    Replies: 2
    Last Post: 04-13-2005, 09:06 AM
  5. [SOLVED] Why does Excel Copy and Paste change dates from the original when.
    By Excel changes dates in copy an in forum Excel General
    Replies: 5
    Last Post: 01-26-2005, 02: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