+ Reply to Thread
Results 1 to 5 of 5

find and replace in all sheet in workbook error

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    find and replace in all sheet in workbook error

    Hello Everyone
    i have workbook have multiple sheet that i want to search on specific value list then replace it
    i have table name (table1) that have two column , one that look and other is new data
    i get this code but its give me error in the following line
    Set TempArray = tbl.DataBodyRange
    although this code if i make new file its work
    can advice which this error is related

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,208

    Re: find and replace in all sheet in workbook error

    Please Login or Register  to view this content.
    Remove Set and add Value:
    Please Login or Register  to view this content.
    BTW.
    No declaration of the TempArray variable.

    Artik

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: find and replace in all sheet in workbook error

    Dear Artik thank you so much for your replying
    still give me error
    do you can advice how can change this code to range without table
    i put my data in range U3:V65
    u column data to look
    V column data to replace
    i try to modify this to the following but give me same error
    Please Login or Register  to view this content.
    i note that in data in table that lookup there is this symbol ' before my value
    like 'GHG/12536524
    i think error coming from it , its possible

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,208

    Re: find and replace in all sheet in workbook error

    Quote Originally Posted by mazan2010 View Post
    i note that in data in table that lookup there is this symbol ' before my value
    like 'GHG/12536524
    i think error coming from it , its possible
    Select such a cell, but do not edit it. If you see the apostrophe (') only in the formula input field (and you don't see it in the cell), it doesn't affect the value of the cell. This is a special formatting character (from the Stone Age ) that tells Excel to treat the value as text.

    Try this code:
    Please Login or Register  to view this content.
    If you're still having trouble with the macro, attach a sample workbook where the code doesn't work.

    Artik

  5. #5
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: find and replace in all sheet in workbook error

    Thank you so much Artik

+ 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 to find and replace from separate workbook / sheet
    By Bowler112 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2018, 02:48 PM
  2. Replies: 1
    Last Post: 02-27-2018, 11:22 AM
  3. Need VBA macro "find replace" from list on sheet 1 cycling through the entire workbook
    By DBaseBeginner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2015, 11:26 AM
  4. Find & Replace on Workbook Open - Error Method 'Cells' of object'_Global' failed
    By goomblar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2015, 09:41 AM
  5. [SOLVED] Find and Replace Macro- Within Workbook or Sheet
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 12:53 PM
  6. Run Time Error '6' Overflow - Macro That Find Text and Copy Range & Replace on Other Sheet
    By asgharhussaini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2013, 04:34 AM
  7. Find and replace error
    By meesh1224 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2005, 11:06 PM

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