Consulting

Results 1 to 4 of 4

Thread: AT-Sign appearing in formula inserted via VBA

  1. #1

    AT-Sign appearing in formula inserted via VBA

    To overcome the post's limiting of URL references (ie the "AT-Sign") so I've replaced them below with a "Q".

    I often insert formulas into ranges using VBA's .Formula ="=..." method. I recently tried inserting a formula into a cell [ ex. .Formula ="=UNIQUE(....)" ] via VBA. The resulting formula inserted in the cell was =QUNIQUE(...) resulting in only the first item in the list appearing. When I manually deleted the "Q" in the cell with the formula it immediately works as expected and showed the full list of results.
    Why is this happening and how can I overcome it when inserting a formula this way.
    I am using Office 365
    Thanks all in advance
    Brian

  2. #2
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location
    try using .FORMULA2 instead
    This is because of office 365 spill range

  3. #3
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  4. #4
    Thanks all, followed the links and understand it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •