Results 1 to 6 of 6

convert formula to code

Threaded View

gavster convert formula to code 11-22-2010, 11:29 AM
royUK Re: convert formula to code 11-22-2010, 11:32 AM
JBeaucaire Re: convert formula to code 11-22-2010, 11:35 AM
gavster Re: convert formula to code 11-26-2010, 06:30 AM
royUK Re: convert formula to code 11-26-2010, 06:49 AM
gavster Re: convert formula to code 11-29-2010, 07:28 AM
  1. #1
    Registered User
    Join Date
    02-24-2007
    Posts
    84

    convert formula to code

    I've just got this formula from a general thread I started, and it works brilliantly.
    =LEFT(A34,6)&MID(a34,8,1)

    I'd like to run it as a bit of code attached to the worksheet, but my version doesn't work.

       If Target.Column = 1 Then
        With Target.Offset(0, 29)
            .FormulaR1C1 = _
                "=IF(RC1>"""",=LEFT(RC1,6)&MID(RC1,8,1),"""")"
         End With
    Any ideas (probably a very simple error)?

    Many thanks,
    Gavin
    Last edited by gavster; 11-29-2010 at 07:29 AM.

Thread Information

Users Browsing this Thread

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

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