+ Reply to Thread
Results 1 to 2 of 2

Turning a Formula to VBA code

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    israel
    MS-Off Ver
    Microsoft Office 2013
    Posts
    58

    Turning a Formula to VBA code

    Hi,

    i have a formula that's located in sheet named "test":
    Please Login or Register  to view this content.
    it takes the date of the day (the bold cell) if in that day the word test is found.

    in the current situation i need to copy and change this formula to the current week, because everyweek have its own sheet.
    how do i make it work for all the weeks?
    i mean that the code is checking for the sheets starting with the word week, then searching in the column for the word "test" then if its true it will paste the date in the cell at the test sheet.

    Thanks for your help!

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Turning a Formula to VBA code

    Try the following Macro (written and tested using Excel 2003):

    Please note that there are several methods of defining 'Week' of the year.

    Lewis

    Please Login or Register  to view this content.

+ 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. Turning a 6 or 7 digit number into a code containing numbers and letters.
    By MCucuzza in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-16-2016, 04:21 PM
  2. Help turning word problem to a formula!!
    By Decimus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-01-2013, 01:32 PM
  3. [SOLVED] Code for turning sheet3 content into a pdf and emailing it with cell info all from sheet1
    By Miasage in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2013, 09:56 AM
  4. Formula Coding Turning Up Blank
    By andyfronek in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-21-2008, 07:28 PM
  5. Turning Text into a Formula
    By iainkane in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2007, 06:18 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