+ Reply to Thread
Results 1 to 2 of 2

Help On VBA code to assigns the date by input box entering into formula

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Help On VBA code to assigns the date by input box entering into formula

    Dear experts

    I have VBA code setting to run into multiple workbooks which are closed workbooks stored in path

    I want reassign the task by every month wise so i want change the date in formula manually, to avoid those thing when run the code pop-up input box has to ask for which month file ? once enter the date mm/dd/yyyy then vba start to run into all workbooks.


    Here I want change on code by pop-up input box:Once enter the date 10/31/2015 it has to apply in formula in Y2
    Range("Y2").Formula = "=IF(OR(RC[-1]>=DATEVALUE(""10/31/2015""),RC[-1]=0),RC[-18],""999"")"
    Range("Y2").AutoFill Destination:=Range("Y2:Y" & lastRow)
    Instead of this I applied this code
    Dim damn As Variant
    damn = Application.InputBox("Enter the low range of comment numbers.", "Low range number", Type:=1)
    Range("Y2").FormulaArray = "=IF(OR(RC[-1]>=DATEVALUE("" & Chr(34) & damn & ""),RC[-1]=0),RC[-18],""999"")"
    Range("Y2").AutoFill Destination:=Range("Y2:Y" & lastRow)

    it doesnt work for me.
    find the attachment along with code module1
    Attached Files Attached Files
    Last edited by breadwinner; 07-14-2016 at 01:22 AM. Reason: caption

  2. #2
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Help On VBA code to assigns the date by input box entering into formula

    any experts help on my thread!!

+ 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. Replies: 6
    Last Post: 06-20-2016, 03:31 AM
  2. Replies: 4
    Last Post: 05-16-2014, 04:06 PM
  3. Error While Entering Vlookup Formula through Macro/VBA Code
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 10:17 PM
  4. Replies: 2
    Last Post: 06-02-2013, 09:39 AM
  5. [SOLVED] If formula that then looks up and assigns a value from a range....
    By stanja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2012, 01:34 PM
  6. VB Code For Recording Date When Entering Data
    By zirconium in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2011, 02:26 PM
  7. Excel 2007 : Excel formula that assigns color
    By shohreh in forum Excel General
    Replies: 1
    Last Post: 04-26-2009, 12:05 PM

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