+ Reply to Thread
Results 1 to 7 of 7

Detect relative reference style letters - different languages

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    Poland
    MS-Off Ver
    Excel 22000
    Posts
    4

    Re: Detect relative reference style letters - different languages

    Quote Originally Posted by Izandol View Post
    You can use XLApp.International(6) to obtain the local equivalent of R and XLApp.International(7) to obtain the local equivalent of C but you must then parse the formula which may not be easy if your formulas are more complicated than your example.
    This really fixed my problem but had to use brackets instead parentheses: XLApp.International[6] and XLApp.International[7].

    Thanks.

    Edit:
    Don't know what happened but with Excel 2013 it worked for a while and stopped after some testing. Now even if XLApp.International returns 'W' and 'K' for formulas I need to use 'R' and 'C' for referencing. Posted procedure gives:

    Formula:='=WK[-2]*WK[-1]';
    Formula2:='=RC[-2]*RC[-1]';
    S1:=Excel.ConvertFormula(Formula, -4150, 1); // gives '=XFC1*XFD1'
    S2:=Excel.ConvertFormula(Formula2, -4150, 1); // gives an exception

    Don't know how to fix it.

    Edit 2:

    Already found the solution. There are plenty of properties starting with Formula, just needed to use FormulaR1C1Local so it will always accept localized formula notation.
    Last edited by thwei11; 11-13-2013 at 11:42 PM.

+ 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. Looking for a way to find and replace just letters in a regex style manner
    By Wegener in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2013, 02:20 PM
  2. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  3. change from relative reference to absolute reference
    By ronlau123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-13-2011, 04:57 AM
  4. Replies: 0
    Last Post: 11-15-2007, 02:35 AM
  5. absolute cell reference in R1C1 reference style
    By Prorocentrum in forum Excel General
    Replies: 1
    Last Post: 06-18-2007, 04:59 PM

Tags for this Thread

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