+ Reply to Thread
Results 1 to 6 of 6

how to concatenate in rc reference styles in excel vba macros

  1. #1
    Registered User
    Join Date
    07-15-2017
    Location
    [email protected]
    MS-Off Ver
    2016
    Posts
    3

    how to concatenate in rc reference styles in excel vba macros

    Dear Friends,

    I am performing a linear interpolation for my class project. I have created a function to perform dynamic calculation with help of last column count(lrt). So, I have retrieved the value for last column(ltr) and tried to concatenate with R1C1 reference generated through macro recording. But it doesn’t work.
    Please Login or Register  to view this content.
    Could you please suggest some idea on how perform workaround for this issue.

    Please find below the following code:


    Please Login or Register  to view this content.
    Last edited by karthikvlb; 07-15-2017 at 10:49 AM. Reason: improper code reference

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: how to concatenate in rc reference styles in excel vba macros

    Sorry Friend.

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    07-15-2017
    Location
    [email protected]
    MS-Off Ver
    2016
    Posts
    3

    Re: how to concatenate in rc reference styles in excel vba macros

    Dear Friend,

    Thank you.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to concatenate in rc reference styles in excel vba macros

    When you are calculating a formula to put in a cell, it is easier to assign the formula to a string and print it to the immediate window. If it's a valid formula, you can copy and paste it into a cell and see it work. If not, fix it:

    Please Login or Register  to view this content.
    Another way to do simple variable substitution:

    Please Login or Register  to view this content.
    Then you can put it in the cell(s):

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-15-2017
    Location
    [email protected]
    MS-Off Ver
    2016
    Posts
    3

    Re: how to concatenate in rc reference styles in excel vba macros

    Thank you very much Dear. It works very well.

    Many Thanks

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to concatenate in rc reference styles in excel vba macros

    You're welcome.

+ 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. Modify/delete cell styles using macros
    By denmark18 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2017, 08:47 AM
  2. [SOLVED] Concatenate Just numbers, excel Macros
    By NewGuy OnBlock in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2015, 04:39 PM
  3. Replies: 2
    Last Post: 11-09-2014, 01:15 PM
  4. [SOLVED] Excel 2013: How to Start Excel with Macros and Custom Styles, Format
    By snapfade in forum Excel General
    Replies: 23
    Last Post: 04-25-2014, 04:29 PM
  5. Replies: 1
    Last Post: 03-08-2013, 02:05 PM
  6. Replies: 4
    Last Post: 10-27-2011, 02:31 PM
  7. A1 Reference Styles
    By apka in forum Excel General
    Replies: 5
    Last Post: 01-16-2008, 12:03 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