+ Reply to Thread
Results 1 to 6 of 6

VBA Excel ... Quota in string

  1. #1
    Registered User
    Join Date
    12-14-2007
    Posts
    3

    VBA Excel ... Quota in string

    Hello,
    I have problem insert formula to sheet with using macro. I need insert this formula:
    =SUMIF($F$2:$AZ$2;"TOTAL";F7:AZ7)

    ... and a write this code:
    Cells(riadok, 5).Formula = "=SUMIF($F$2:$AZ$2;" & ""TOTAL"" & ";F" & riadok & ":AZ" & riadok & ")"

    .. problem is text mark with red color.

    Please help me. Thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Is Total a variable?

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try with this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  4. #4
    Registered User
    Join Date
    12-14-2007
    Posts
    3
    Thanks ... I use this code:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What is TOTAL referring to?

  6. #6
    Registered User
    Join Date
    12-14-2007
    Posts
    3
    ... TOTAL is only caption of column where I check when data with this column get to SUM.

+ 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