+ Reply to Thread
Results 1 to 4 of 4

Macro: Search and replace: Replace using a cell reference

  1. #1
    Registered User
    Join Date
    01-10-2018
    Location
    USA
    MS-Off Ver
    10
    Posts
    16

    Macro: Search and replace: Replace using a cell reference

    Hello all
    need some help on the replace portion of this code. Would like to use a cell reference instead of a flat number. Cell reference would be Sheet1 Cell E16

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,894

    Re: Macro: Search and replace: Replace using a cell reference

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-10-2018
    Location
    USA
    MS-Off Ver
    10
    Posts
    16

    Re: Macro: Search and replace: Replace using a cell reference

    Hello
    I am a getting an error, each time I type in Option Explicit, it goes into the macro before this one. Also changed Sheet1 with RunProcess

    SearchVal = runprocess.Range("E16").Value

    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,894

    Re: Macro: Search and replace: Replace using a cell reference

    "...runprocess.Range("E16").Value..."
    RunProcess is not an Excel Object, but the name of a particular SHEETS Object

    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)

Similar Threads

  1. [SOLVED] Macro to search zeros and replace it with the cell above
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2014, 03:08 PM
  2. Search and replace macro that uses a cell value as a reference
    By dan.zrust in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-20-2013, 05:23 AM
  3. [SOLVED] Find and Replace Macro Based on Cell Reference and Inputbox
    By bwaite87 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2013, 10:46 AM
  4. Modify Macro Search & Replace Formatting for part of cell
    By tkeiffer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2011, 05:48 PM
  5. [SOLVED] Limit Search & Replace's Replace All?
    By Bob@1800-mail.com in forum Excel General
    Replies: 4
    Last Post: 08-03-2006, 02:00 PM
  6. Search and replace macro?
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2005, 09:17 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