Results 1 to 6 of 6

Receive an error in long formula with macro

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-09-2008
    Posts
    124

    Receive an error in long formula with macro

    Hello

    How to fix this macro?

    Sub Macro555()
    
        Range("B2").Select
        ActiveCell.FormulaR1C1 = _
            "=LEFT(0&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"(",""),")",""),"+","")," ",""),"=",""),"-",""),"_",""),".",""),"?",""),9),3)&"-"&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"(",""),")",""),"+","")," ",""),"=",""),"-",""),"_",""),".",""),"?",""),7)"
        Range("B3").Select
    End Sub
    Thank You
    Last edited by yannipr; 06-14-2016 at 04:55 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. long formula to vba macro - error 1004 unable to set formulaarray property
    By desibabuji in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2013, 06:18 AM
  2. [SOLVED] Hyperlinks:receive an error message
    By Maxy007 in forum Excel General
    Replies: 3
    Last Post: 02-01-2011, 11:59 AM
  3. i receive an error running a macro
    By dversa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2009, 06:13 PM
  4. Unable to record error, long formula macro problems
    By Jerhansen277 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-25-2008, 06:22 PM
  5. formula too long error?
    By dread in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-29-2006, 01:40 AM
  6. [SOLVED] formula is too long error
    By w1nter11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2006, 08:10 PM
  7. [SOLVED] Error formula too long
    By JJT in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-23-2005, 12:10 PM
  8. [SOLVED] formula too long error
    By SB in forum Excel General
    Replies: 2
    Last Post: 12-19-2005, 06:00 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