+ Reply to Thread
Results 1 to 4 of 4

Inserting formula using vba is adding unwanted brackets

  1. #1
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Inserting formula using vba is adding unwanted brackets

    I am adding in a formula using the following code:

    Please Login or Register  to view this content.
    When it enters the formula, though, it is adding an unnecessary brackets so that the formula does not work (highlighted in bold).

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Any ideas why it is doing this and what I can do to stop it?

    Thanks

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Inserting formula using vba is adding unwanted brackets

    You mix R1C1 and A1 style in the formula. Use only R1C1 style
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Inserting formula using vba is adding unwanted brackets

    You need to use R1C1 references, if you're using .formulaR1C1...

    So the formula would become:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    04-19-2013
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2010
    Posts
    297

    Re: Inserting formula using vba is adding unwanted brackets

    Awesome, cheers guys!

+ 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] Excel 2007 : Excel is adding unwanted data to chart
    By tcharp in forum Excel General
    Replies: 3
    Last Post: 06-01-2012, 08:49 PM
  2. Replies: 5
    Last Post: 04-19-2012, 09:02 AM
  3. Replies: 3
    Last Post: 12-20-2011, 06:12 PM
  4. Replies: 8
    Last Post: 11-14-2011, 07:45 PM
  5. Replies: 0
    Last Post: 04-18-2011, 06:39 PM

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