Need the code below to automatically include current month and previous month without having to change the code each month. Thanks!
![]()
Please Login or Register to view this content.
Need the code below to automatically include current month and previous month without having to change the code each month. Thanks!
![]()
Please Login or Register to view this content.
Last edited by ElmerFud; 08-04-2015 at 08:17 AM.
Hi Elmer
Please wrap your Code in Code Tags.
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
Hi Elmer,
have not tested yet on VBA, but you can use worksheetfunction.EoMonth.
Formula:
Please Login or Register to view this content.
Let me know whether it work or not.
Cheers
Lex
Hi Elmer
Not tested...try this.
![]()
Please Login or Register to view this content.
Hi Elmer
Not without seeing your Workbook and just what it is you're trying to do.
On the surface this line if Code makes no sense to me...your placing your Filter starting at Row 4298...
And yet you start the Copy of visible cells at Row 2...![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by jaslake; 08-05-2015 at 01:08 PM.
How can this work correctly ? (2 points before Autofilter)
![]()
Please Login or Register to view this content.
Thanks again Jaslake, Yes, their demands here are never ending. Your right originally it transferred rows starting at ("$A$4298:$F$14000") to current but now their asking me to isolate automatically the most current month along with the last two years. So it's change yet again on me and I forgot to update the code and my question. What I'm trying to accomplish with my limited knowledge is to transfer Columns and Rows A thru F only for the current month and to also include the last two years.
Hi Elmer
You've got my knickers twisted. Attach your File...I'll look at it...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks