Results 1 to 14 of 14

VBA code not running automatically

Threaded View

  1. #10
    Forum Contributor
    Join Date
    10-16-2010
    Location
    bangalore
    MS-Off Ver
    Excel 2019
    Posts
    288

    Re: VBA code not running automatically

    Below is the formula avaible in cell A1

    =EDATE(DATE(C2,MONTH(1&B2),1),1)-1

    In C2 cell i will update the year manually

    In B2, cell is dropdown list where in i will select the months like January, February and based on this Cell A1 gives me the last date of the month.
    Last edited by anwitha; 07-10-2021 at 03:00 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. code works running in visual basic editor but not when running from Excel macro
    By smporco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2016, 05:44 PM
  2. [SOLVED] How to prevent worksheet code from running while Module Macro is running:
    By Chad Bateman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 09:26 AM
  3. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  4. [SOLVED] Automatically returning a date value + 7 days after running some code
    By Skiddedoda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2013, 05:37 AM
  5. Excel 2007 SP2 Objects Resize automatically when running VBA code
    By trent_19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2011, 05:32 AM
  6. Date doesn't appear automatically when running date code
    By James12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2009, 05:20 PM
  7. Automatically running code
    By Richard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2006, 05:40 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