+ Reply to Thread
Results 1 to 9 of 9

Filtering column A then write text in visible cell B

  1. #1
    Registered User
    Join Date
    04-23-2015
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    5

    Filtering column A then write text in visible cell B

    I'm trying to filter column A with specified keywords then fill some text in visible cell of column B using "Sub RunThis"
    Once my keyword not match with any of rows A then the error1004 appear.

    Could you please suggest me to fix this ?

    Thank you so much,
    My working file: https://www.dropbox.com/s/k4tnw9fsnv...heet.xlsm?dl=0

    My cross-posting
    http://stackoverflow.com/questions/3...out-1004-error
    http://www.excelforum.com/showthread...5681&p=4088366
    http://www.ozgrid.com/forum/showthread.php?t=195012

    VB:
    Please Login or Register  to view this content.
    Thank you for helping me.

    Currently i'm use the code below and seems to works fine.


    Please Login or Register  to view this content.
    Last edited by noppornph; 05-31-2015 at 09:05 AM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Filtering column A then write text in visible cell B

    Can you attach your file directly in the thread!
    Your link don' t work for free
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Filtering column A then write text in visible cell B

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Registered User
    Join Date
    04-23-2015
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    5

    Re: Filtering column A then write text in visible cell B

    Quote Originally Posted by jindon View Post
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Dear jindon,
    I have added my cross-posting links
    so sorry sir.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Filtering column A then write text in visible cell B

    Thanks for you understanding and immediate action.

  6. #6
    Registered User
    Join Date
    04-23-2015
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    5

    Re: Filtering column A then write text in visible cell B

    Could you please help me verify my code above ?
    Thanks

    https://drive.google.com/file/d/0B0D...ew?usp=sharing

  7. #7
    Registered User
    Join Date
    04-23-2015
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    5

    Re: Filtering column A then write text in visible cell B

    Quote Originally Posted by jindon View Post
    Thanks for you understanding and immediate action.
    I just change the code, could you please help me verify my logic and code
    THanks

    File: https://drive.google.com/file/d/0B0D...ew?usp=sharing

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Filtering column A then write text in visible cell B

    See if this is how you wanted.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-23-2015
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    5

    Re: Filtering column A then write text in visible cell B

    Quote Originally Posted by jindon View Post
    See if this is how you wanted.
    Please Login or Register  to view this content.
    I will try it tonight, never see this sort of code before(advanced)
    I usually use "Record macro" then do some editing from the system recorded code.

+ 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 for filtering a column then filling down a text for visible cells in another column
    By rajkumarmp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2013, 04:00 PM
  2. Table Object after filtering - Count visible rows & First visible row
    By limalf in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-13-2013, 07:29 PM
  3. Trying to write amacro to compare text in column A to garbage text in column B
    By Big Dawg Dad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2013, 03:31 PM
  4. find duplicates for visible cells after filtering for a column
    By sravan.rathnam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 06:41 AM
  5. Replies: 2
    Last Post: 12-30-2011, 06:22 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