Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Junior Member
 
Location: Oklahoma
Posts: 6
Default VBA question: adding a row to worksheet from recordset row

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default VBA question: adding a row to worksheet from recordset row

Range(Cells(RowCount, 1), Cells(RowCount, SourceLastCol)).Insert (xlShiftDown)

"HockeyFan" wrote:

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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I have a question about adding information to a list of items that have cells linked to another worksheet. Marc Excel Discussion (Misc queries) 1 July 9th 06 05:27 AM
Return ADO recordset to worksheet Terri[_6_] Excel Programming 3 June 9th 06 05:23 PM
Repost! Excel multiple worksheet populate from recordset B[_3_] Excel Programming 1 November 6th 04 10:56 AM
Help! Excel multiple worksheet populate from recordset B[_3_] Excel Programming 1 November 5th 04 09:59 AM
Type recordset/recordset? FlaviusFlav[_9_] Excel Programming 4 May 24th 04 12:16 PM


All times are GMT +1. The time now is 11:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"