Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / March 2007

Tip: Looking for answers? Try searching our database.

Looping through and deleting rows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mim - 13 Mar 2007 15:19 GMT
I need to write a macro that will select a range of cells (number of rows
always different). Then look into Column C in each row in the selection, and
delete the entire row if the text in that cell is not "Y".
Then it needs to move onto the next row, until all rows in the selection are
looked at.
I know this should be easy enough, but I can't seem to get the correct
syntax for the statement "for each row in current selection"
Help, please !
Thanks,
MIM
Ken Snell (MVP) - 18 Mar 2007 03:18 GMT
Sounds as if your question pertains to EXCEL? This newsgroup is for ACCESS;
I recommend that you post your question in an EXCEL newsgroup.

Signature

       Ken Snell
<MS ACCESS MVP>

>I need to write a macro that will select a range of cells (number of rows
> always different). Then look into Column C in each row in the selection,
[quoted text clipped - 8 lines]
> Thanks,
> MIM
 
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.