+ Reply to Thread
Results 1 to 3 of 3

Need help to solve this filter issue in VBA

  1. #1
    Registered User
    Join Date
    09-10-2021
    Location
    Svalbard, Norway
    MS-Off Ver
    2020
    Posts
    4

    Need help to solve this filter issue in VBA

    Hello community members,
    I just started learning VBA. I am developing a macro to automate certain task. I am stuck at one point. Need your expertise to solve it. I have given below how i expect this macro to work.
    1. Open Customer feedback
    2. Copy data from different columns in Customer feedback(Sheet2) to Sheet1
    3. Column AV, AW, AX contains data and 0.
    4. I want to replace 0 with "-" in all three column.
    5. Delete Sheet2

    Point to remember is its a dynamic data. In this week report 0 is starting in row 5 in column AV but it may change next week.
    I tried doing it with following code and it works to some extent. Where I am stuck? While replacing 0 with "-" already present data in the same column is getting affected and either a minus sign gets added or some random weird stuff. Not sure where my code is wrong.

    I would really appreciate if you guys can help me out. I have pasted entire code. If you can suggest to make it more scalable it would be lovely.

    Please Login or Register  to view this content.
    vba error 1.png
    vba error 2.png

  2. #2
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Need help to solve this filter issue in VBA

    While replacing 0 with "-" already present data in the same column is getting affected and either a minus sign gets added or some random weird stuff.
    Maybe try "LookAt:=xlWhole" not "LookAt:=xlPart" ?

  3. #3
    Registered User
    Join Date
    09-10-2021
    Location
    Svalbard, Norway
    MS-Off Ver
    2020
    Posts
    4

    Re: Need help to solve this filter issue in VBA

    Quote Originally Posted by karmapala View Post
    Maybe try "LookAt:=xlWhole" not "LookAt:=xlPart" ?
    Thank you so much. It worked like a charm

+ 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. Changing VBA to Compare two Sheets and extracting the difference in a third sheet
    By a2z293 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2021, 02:39 PM
  2. please help with combination of formulas, array, vlookup
    By ohdiana in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2014, 04:43 PM
  3. Please Help to solve this issue using MACRO's
    By rpriyadharsini1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2013, 12:59 AM
  4. [SOLVED] Solve a formula issue
    By maurella28 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2013, 04:44 PM
  5. [SOLVED] Solve this OFFSET issue
    By janagan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-26-2013, 12:04 PM
  6. Permissions issue that I cannot solve
    By jclark419 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2006, 09:40 AM

Tags for this Thread

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