+ Reply to Thread
Results 1 to 3 of 3

Error with Formula SUBSTITUTE

  1. #1
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    Question Error with Formula SUBSTITUTE

    Hi

    I tried to place a formula is a list of selected cells with VBA. When I ran the marco, the following code in red came across with error. Could anyone help to correct it? Many thanks in advance.

    Please Login or Register  to view this content.
    Last edited by alexxgalaxy; 01-10-2013 at 10:18 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Error with Formula SUBSTITUTE

    You should be using .FormulaR1C1, not .Formula

  3. #3
    Registered User
    Join Date
    09-16-2011
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: Error with Formula SUBSTITUTE

    I didn't run into error when running the code (using only Formula, not FormulaR1C1) in the PC at home. The only difference is I was using Excel 2010 in the PC at the office, while Excel 2003 at home. I'll test it when I am back to the office tomorrow. Thanks Andrew!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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