+ Reply to Thread
Results 1 to 3 of 3

Problem with R1C1 in Formulae when Running Code

  1. #1
    Registered User
    Join Date
    06-15-2023
    Location
    POland
    MS-Off Ver
    365
    Posts
    1

    Problem with R1C1 in Formulae when Running Code

    Hello,

    In my place i'm using vba script to paste ready table to email.
    It's working okay but problem appear when users are using R1C1 style in Excel formulas.
    That code is making problem:
    Please Login or Register  to view this content.


    i was trying to replace it with Cells() but without success.
    when i do it i have new sheet without email pasted.

    Could you please help me to solve that issue? How to change the Range to working for both ways of formulas.

    Thats all the code:

    Please Login or Register  to view this content.
    Last edited by Maciej Bocian; 06-15-2023 at 03:31 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Problem with R1C1 in Formulae when Running Code

    Administrative Note:

    Welcome to the forum.

    You need to read the forum rules regarding thread titles and code tags.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Problem with R1C1 in Formulae when Running Code

    Untested...but maybe something like this?
    Please Login or Register  to view this content.

+ 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