+ Reply to Thread
Results 1 to 3 of 3

help with entering a formula to the range

  1. #1
    Registered User
    Join Date
    07-10-2016
    Location
    Graz, Austria
    MS-Off Ver
    office 10
    Posts
    1

    help with entering a formula to the range

    Hi
    I have a problem trying entering a formula to a range using vba.
    Code is here

    Please Login or Register  to view this content.
    I get run time error '1004' application-defined or object-defined error.
    I would appriciate any help.
    Thank you.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: help with entering a formula to the range

    Try

    Please Login or Register  to view this content.
    When entering a formula via vba, any double inverted commas need to be entered twice, i.e. " should be "" and "" should be """"

    I've also cleaned the formula up a little, most of it wasn't needed.
    Last edited by jason.b75; 07-10-2016 at 05:13 AM.

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

    Re: help with entering a formula to the range

    You need to double up the quotes in the formula.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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. Range entering with set DIM
    By superdonk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-10-2015, 11:18 AM
  2. [SOLVED] Sum data by entering a date range
    By EmilyB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2014, 10:38 PM
  3. [SOLVED] Entering a formula into a cell using cells from a named range
    By davidrias in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-03-2013, 06:58 PM
  4. Entering Sum and Range Formula in Macro
    By goldenbear10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2009, 04:24 PM
  5. Entering combo box value into the source range
    By kiwi_flyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2009, 03:46 AM
  6. entering a formula after a random range
    By dgwak in forum Excel General
    Replies: 4
    Last Post: 12-17-2008, 12:18 PM
  7. [SOLVED] Entering a range of numbers and searching same
    By Penny in forum Excel General
    Replies: 29
    Last Post: 05-10-2006, 10:45 AM

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