Hi could you please advise why the macro for advanced filter is working, every time, I run macro, they only copy head into selected place, no content, thanks
Hi could you please advise why the macro for advanced filter is working, every time, I run macro, they only copy head into selected place, no content, thanks
Last edited by reedzhou; 06-12-2014 at 11:15 PM. Reason: use wrong title
Where are your criteria?
![]()
Please Login or Register to view this content.
Hope this helps
Sometimes its best to start at the beginning and learn VBA & Excel.
Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
Available for remote consultancy work PM me
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.
Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
thanks, Nathansav
please see below VBA. Could you please advise why it is not working, every time, only title turns up or the whole spreadsheet turn up.
another question, can I put criteria on another sheet to run advanced filter? thank you in advance
PHP Code:
Sheets("REPORT").Select
Range("A22:J460").Delete
Sheets
Sheets("Details").Range("A12:J460").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("A9:J10"), CopyToRange:=Sheets("REPORT").Range("A22"), Unique:=False
Sheets("REPORT").Select
Range("A3").Select
End Sub
Last edited by reedzhou; 06-12-2014 at 10:54 PM. Reason: change code
Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.
If you are unclear about the request or instruction then send a private message to them asking for clarification. Do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc
Also:
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Which field should you be setting the criteria for? You can establish a variable for the criteria and it could be a range in a different worksheet. But until you set a criteria, your autofilter does not know what to filter.
This link may help you.
http://www.ozgrid.com/VBA/autofilter-vba-criteria.htm
Please try:
![]()
Please Login or Register to view this content.
- Please remember to mark threads Solved with Thread Tools link at top of page.
- Please use code tags when posting code: [code]Place your code here[/code]
- Please read Forum Rules
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks