+ Reply to Thread
Results 1 to 3 of 3

looping through worksheet and enter formula

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Utrecht, Netherlands
    MS-Off Ver
    2010
    Posts
    69

    looping through worksheet and enter formula

    Hi,

    I'm trying to loop through a worksheet and aneter a formula in a cell.

    My Code is:

    Please Login or Register  to view this content.
    Problem is that when i look into the cells with the inserted formula the formula is:

    IF(ISERROR("L" & readRow * "C" & readRow),0,"L" & readRow * "C" & readRow). Which results ofcourse in value = 0 because of the iserror.

    Please help

    Regards, Bart

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: looping through worksheet and enter formula

    Try this:

    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  3. #3
    Registered User
    Join Date
    08-18-2015
    Location
    Utrecht, Netherlands
    MS-Off Ver
    2010
    Posts
    69

    Re: looping through worksheet and enter formula

    spitfireblue,

    Many thanks! This works great!

    Regards,

    Bart

+ 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. Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each
    By mondorock in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-16-2014, 06:24 AM
  2. Formula/VBA to enter worksheet/tab color as a value in a cell
    By cheesiepoof05 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2013, 04:36 PM
  3. Formula/VBA to enter worksheet/tab color as a value in a cell
    By cheesiepoof05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 03:28 PM
  4. Replies: 5
    Last Post: 12-06-2010, 04:39 PM
  5. VBA to enter formula into worksheet upon update
    By bruce2444 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2009, 02:52 PM
  6. enter formula into Excel worksheet without losing numbers
    By ricki racer in forum Excel General
    Replies: 1
    Last Post: 07-29-2006, 06:15 PM
  7. [SOLVED] Looping Macro to enter negative totals
    By Jim May in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2006, 08:35 PM
  8. Replies: 1
    Last Post: 02-15-2005, 10:06 AM

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