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 / Programming / February 2007

Tip: Looking for answers? Try searching our database.

VBA question: adding a row to worksheet from recordset row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HockeyFan - 14 Feb 2007 16:45 GMT
I'm somewhat new to VBA.  I currently have to loop through a sql
recordset, which I already am able to do.  I then do a search on
another workbook, looking through a sheet there to find certain things
that match my values from my recordset.
If I find a match, I want to create a row in my current
workbook.worksheet of the current row in the recordset (rsQTS.Fields).

So how do I add a row to the worksheet from a single row from a
recordset?
Joel - 14 Feb 2007 17:02 GMT
Range(Cells(RowCount, 1), Cells(RowCount, SourceLastCol)).Insert (xlShiftDown)

> I'm somewhat new to VBA.  I currently have to loop through a sql
> recordset, which I already am able to do.  I then do a search on
[quoted text clipped - 5 lines]
> So how do I add a row to the worksheet from a single row from a
> recordset?
 
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.