+ Reply to Thread
Results 1 to 6 of 6

Offsett and replace range

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Offsett and replace range

    Hi!
    I'm going mad about this. I want select a cell (merged over 4 rows), click a button with a macro that offsets 5 cells to the right, then marks an area from there to the end of my Formulas (i'm thinking xlToRight) and 4 rows down (same hight as the merged cell) and in that area replace "madness" with "yey". Please help me how that's done!
    Thanks!

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Offsett and replace range

    can you upload a sample workbook? tough to work out the details with what you have given.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Offsett and replace range

    And, if you have formulas in that Range, you can't replace them with another value without replacing your formulas.

    Site security will not allow me to put some code in so that is in the attached .txt file.
    Attached Files Attached Files
    Last edited by jolivanes; 07-10-2019 at 12:08 AM.

  4. #4
    Registered User
    Join Date
    06-04-2014
    Posts
    34

    Re: Offsett and replace range

    Quote Originally Posted by jolivanes View Post
    And, if you have formulas in that Range, you can't replace them with another value without replacing your formulas.

    Site security will not allow me to put some code in so that is in the attached .txt file.
    That is exactly how I was thinking. Thanks! The replace will find a dummy text in a few index match Formulas and replace it with the name of a workbook that the Formulas is supposed to refer to. Seem to work fine. Thanks!

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Offsett and replace range

    Quote Originally Posted by jolivanes View Post
    Site security will not allow me to put some code in so that is in the attached .txt file.
    Hi
    could you please explain what went wrong? Normally there should be no problem posting code ?

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,527

    Re: Offsett and replace range

    Hi Pepe.
    The Sucuri warning would not let me Post.
    I tried it again with this Post (Copy and Paste the Text from the .txt file) and it came up with the warning again
    "Access denied. Sucuri Website Firewall." and a whole bunch of additional info.
    See attached picture (IP address blacked out by me)
    Attached Images Attached Images

+ 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. VBA - replace text within range with contents of another range
    By grantnorton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2018, 04:20 AM
  2. Replace Div/0 with 0 for a range
    By rcdavis28 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2018, 01:33 PM
  3. Find and Replace within Range
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2016, 06:07 AM
  4. lookup value then replace range by range
    By asqw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2016, 10:14 AM
  5. offsett cell - why does it not work?
    By impartrudie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2011, 10:40 AM
  6. selecting an offsett cell - doesnt work properly..
    By impartrudie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2011, 05:19 AM
  7. Find/replace range
    By Corrine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2006, 09:40 AM

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