+ Reply to Thread
Results 1 to 4 of 4

VBA to select & replace contents of cells

  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    VBA to select & replace contents of cells

    Hi,

    I need to replace some data in certain cells but my current code won't work;

    Please Login or Register  to view this content.
    I'm trying to replace $G with $J just in cells H12 to K23??

    Any ideas?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: VBA to select & replace contents of cells

    Change Cells to Range.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-21-2013
    Location
    Corvallis, OR
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: VBA to select & replace contents of cells

    Replace .cells with .range like this:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: VBA to select & replace contents of cells

    Brilliant!

    Many thanks

+ 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. Replace Contents of Cells Based on Values of Another
    By Babio1964 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-27-2013, 07:12 AM
  2. Concatenating the contents of several cells in a select and then copying that string
    By HorsePop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2013, 05:36 AM
  3. [SOLVED] Excel VBA Paste Special - replace contents of destination cells
    By Sam via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2012, 12:44 PM
  4. select range of cells and replace
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2008, 08:06 AM
  5. Replace a Cells contents after a value is entered
    By JimS in forum Excel General
    Replies: 2
    Last Post: 02-29-2008, 08:56 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