+ Reply to Thread
Results 1 to 5 of 5

assigning quotes formula to cell with VBA

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    76

    assigning quotes formula to cell with VBA

    Could anyone point me in the correct direction with my problem?
    Having trouble with quotes and whatever i do i dont get this to work.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Appreciate all answers.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: assigning quotes formula to cell with VBA

    Whats, the formula supposed to look like?

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: assigning quotes formula to cell with VBA

    What is it you're trying to achieve, maybe a sample workbook might make it clearer.

    CHAR(34) is for " in Excel however your criteria for the second countif reads like:

    & ">=0" &

    Which doesn't make any sense

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: assigning quotes formula to cell with VBA

    Try this...

    "=COUNTIFS(Sheet1.!F10:F109,C7,Sheet1.!L10:L109,"">=0"")"
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    Norway
    MS-Off Ver
    2016
    Posts
    76

    Re: assigning quotes formula to cell with VBA

    This was my problem:

    Please Login or Register  to view this content.
    this is my solution and works:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Names.Add method creates named range using quotes - Need to remove quotes
    By AstToTheRegionalMGR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2016, 11:48 PM
  2. [SOLVED] Assigning Formula to a Cell VBA
    By alexduy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2016, 06:47 PM
  3. [SOLVED] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  4. Remove text between quotes, variable length and number of quotes
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2011, 10:40 AM
  5. Assigning a formula to a cell within a macro
    By tsrwebman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-03-2011, 04:56 AM
  6. Replies: 3
    Last Post: 09-13-2008, 03:51 AM
  7. Setting a cell's value as a formula containing quotes or double quotes using vba
    By Metshrine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2006, 04:10 AM

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