Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Assistanec with Code much appreciated

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gerry - 27 Mar 2008 18:28 GMT
Can someone write me a wee snippit of VBA which I can attach to a
button.  I would like to be able to click a button with would run a
filter on Column N in my spreadsheet.  The result of the filter would
show all entries which began with the letter J and ended with the
letter N.  It would also show all entries which do not begin with J
but do end in Y.

For info, the entries in column N are no more than a dozen letters and
no spaces exist.

Many thanks
Billy Liddel - 27 Mar 2008 21:45 GMT
Gerry

You could use a helper column to decide whether or not these conditions are
true (or false) and filter on true.

=OR(AND(LEFT(n2,1)="J",RIGHT(N2,1)="N"),AND(LEFT(N2,1)<>"J",RIGHT(N2,1)="Y"))

Entered in the helper column and copied down use a label Test in N1

Hope this helps
Peter

> Can someone write me a wee snippit of VBA which I can attach to a
> button.  I would like to be able to click a button with would run a
[quoted text clipped - 7 lines]
>
> Many thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.