+ Reply to Thread
Results 1 to 5 of 5

What is wrong with this line?

  1. #1
    Registered User
    Join Date
    04-05-2015
    Location
    Norway
    MS-Off Ver
    Office365
    Posts
    4

    What is wrong with this line?

    I need help With this first line, can anyone see why its not working?


    ActiveCell.FormulaR1C1 = "=IF(RC[-2]=""0"",""100%"",=(RC[-3]/RC[-2]-1))"



    Range("F5").Select
    Selection.AutoFill Destination:=Range("F5:F350"), Type:=xlFillDefault


    Thx if anyone got any answers!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: What is wrong with this line?

    Get rid of the 2nd = in the formula.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: What is wrong with this line?

    Maybe this.

    Please Login or Register  to view this content.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  4. #4
    Registered User
    Join Date
    04-05-2015
    Location
    Norway
    MS-Off Ver
    Office365
    Posts
    4

    Re: What is wrong with this line?

    Thx, I combined both of Your two tips !

  5. #5
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: What is wrong with this line?

    Thanks for the rep. points.

    Please click the Thread Tools drop down box above your first post and choose solved.

+ 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. What's wrong with a specific line of code?
    By a1b2c3d4e5f6g7 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-30-2014, 04:01 PM
  2. [SOLVED] Macro check as bringing wrong line through
    By aaaaaaiden in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2014, 06:11 AM
  3. [SOLVED] Writing text on the wrong line
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2012, 11:59 AM
  4. Line spacing wrong when copying over to word
    By tryer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2011, 04:34 PM
  5. What is wrong with this line?
    By ChartsToBe in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-27-2006, 07:10 PM
  6. what's wrong with this paste line??
    By Tre_cool in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2005, 08:05 PM
  7. Something wrong in one line of VBA code
    By Daniel Bonallack in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2005, 03:05 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