+ Reply to Thread
Results 1 to 4 of 4

Date cell reference coding

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    9

    Date cell reference coding

    Hi ,

    I'm new to VBA and the forum and in need of some much needed help!

    The problem I have is that I need to be able to add the date to the code (below) from the spreadsheet and not from the coding window.

    Please Login or Register  to view this content.
    this is just a snppit of the code.

    I believe I need to reference the cell and store as a variable but I cant seem to get it to work.

    Thank you for you in advance for for helping.

    Ben

    Moderator's note: Please review rules--rule #3 requires code tags. I have added them since it's your first post. --6SJ
    Last edited by 6StringJazzer; 12-17-2013 at 04:44 PM. Reason: added code tags

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,750

    Re: Date cell reference coding

    If the date is in cell A1, and the code is in the object module for that worksheet, simply use

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Date cell reference coding

    Edit: Nevermind
    Last edited by stnkynts; 12-17-2013 at 04:50 PM.

  4. #4
    Registered User
    Join Date
    12-17-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Date cell reference coding

    All sorted

+ 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. Email Message body with reference to cell using VBA coding
    By MakkyD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2013, 03:52 AM
  2. Colour coding a cell which is "out of date"
    By mcslide in forum Excel General
    Replies: 2
    Last Post: 07-05-2012, 11:23 AM
  3. Reference a cell with a date in it
    By excelboy9317 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 11:30 AM
  4. Replies: 2
    Last Post: 03-19-2010, 05:22 PM
  5. if then statement color coding (or another function???)-circular reference.
    By hopeful in jersey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2005, 03:05 AM

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