Results 1 to 5 of 5

Looping through day of week

Threaded View

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Looping through day of week

    Hi all...
    I'm trying to set up a simple macro to loop through some number of dates on a sheet and blank out fields next to every instance of Saturday and Sunday.

    The only problem I'm having is actually finding the values "Saturday" and "Sunday"

    Given a date in this format: 01/01/2009
    I can convert to "Thursday"

    Problem is, the vba code still "sees" 01/01/2009

    I've tried copy / paste special / paste values to no avail.
    I've tried changing it via VBA (a few different methods, including strings, formats, etc) with no luck.
    Even tried referencing my date cells from another spreadsheet and pasting the values back in. Can't seem to get 01/01/2009 to be "Thursday"

    I'm sure I'm missing something pretty simple. Can any of you smack some sense into me?

    Thanks
    Last edited by VBA Noob; 03-17-2009 at 04:41 PM. Reason: Solving

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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