+ Reply to Thread
Results 1 to 9 of 9

adding formula into cell when using formula within quoatation marks

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    adding formula into cell when using formula within quoatation marks

    Hi All

    This is just basic coding, i assume a "" is out of place in the second line or something but i'm not seeing it or maybe it shouldnt be .formula??



    Please Login or Register  to view this content.

    I would be most appreciaive if someone can tell me what ive done wrong

    thanks for you help
    Last edited by leviathan54; 03-15-2012 at 09:04 PM. Reason: Added tags

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Whats wrong with this line?

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags and amend the thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-01-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Whats wrong with this line?

    Done - thanks SHG

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: adding formula into cell when using formula within quoatation marks

    CODE tags, not QUOTE tags, please.

    Thanks.

    EDIT: Also, the syntax is fine -- what error do you get?

  5. #5
    Registered User
    Join Date
    02-01-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: adding formula into cell when using formula within quoatation marks

    Thanks SHG

    I get Run-time error '1004': application defined or object-defined error

    i click debug and the line goes yellow

    I will also add...I've double checked the names of the work sheets and they are correct...

    If I wrote the coding like this - it does insert the formula but obviously wont work as 'lastrow' isnt identified

    Please Login or Register  to view this content.
    Last edited by leviathan54; 03-15-2012 at 09:03 PM.

  6. #6
    Registered User
    Join Date
    02-01-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: adding formula into cell when using formula within quoatation marks

    Maybe theres another way I can write it?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: adding formula into cell when using formula within quoatation marks

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-01-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: adding formula into cell when using formula within quoatation marks

    Thanks for you help SHG..

    I knew it was tiny little thing I wasnt seeing...grrr

    I'm trying to list it as solved..how do i do this?
    Last edited by leviathan54; 03-18-2012 at 08:33 PM.

  9. #9
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: adding formula into cell when using formula within quoatation marks

    Edit your first post and change the prefix to solved.

+ 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