+ Reply to Thread
Results 1 to 7 of 7

Entering a formula with macro into cell

  1. #1
    Registered User
    Join Date
    05-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Entering a formula with macro into cell

    Dear all,
    i tried this now for some time but cannot figure it out. I want to enter the following formula in Cell C7:
    Please Login or Register  to view this content.
    however I alwys get a runtime error 1004: 'application-defined or object-defined error'.

    could anyone tell me what i am doind wrong? if I leave the equal sign, then the text is entered in the cell.....


    thanks everyone!

  2. #2
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Entering a formula with macro into cell

    Hi -

    Even if you take off the equal sign it will throws an error, check your spelling;

    Please Login or Register  to view this content.
    Regards,
    event
    Last edited by event21; 10-23-2012 at 08:38 AM. Reason: change reference cell

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: Entering a formula with macro into cell

    ...
    although I'm not sure why you are using semi-colons to separate parameters if you are based in London.

    Hope this helps.

    Pete
    Last edited by Pete_UK; 10-23-2012 at 08:59 AM. Reason: rubbish answer

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Entering a formula with macro into cell

    the formula property expects u.s. delimiters
    Please Login or Register  to view this content.
    or use formulalocal
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    05-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Entering a formula with macro into cell

    Thanks a lot! the formulalocal thing worked well. Can you maybe tell me what the difference is with the Formulalocal?

    Regarding the semicolons, I am using an englisch excel version but currently I am based in germany. my excel always uses semicolons as separators.

    and sorry regarding the spelling error. that must have happend while typing it in here. in the original code there was no typo. sry.
    @all thanks a lot for your help!

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Entering a formula with macro into cell

    formulalocal expects a formula the way you would enter it in a sheet but formula expects us-english format

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Entering a formula with macro into cell

    Hi -

    Is .value works in Germany too? Can you advise?
    Please Login or Register  to view this content.
    Regards,
    event

+ Reply to Thread

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