Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Excel Row count with AcvtiveX Script (DTS)


Excel Row count with AcvtiveX Script (DTS)

Author
Message
Ram Kumar-226171
Ram Kumar-226171
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 22
After opening excel sheet how do I get the row counts on the opened worksheet.

Please Note: I can't use SQL task to get the count.

Dim ex_app
Dim ex_wbook
Dim ex_wksheet
Dim sFilename

sFilename = DTSGlobalVariables("gv_ExcelFilename").Value

' Create the Excel Object
Set ex_app = CreateObject("Excel.Application")

' Open up the Excel Spreadsheet
Set ex_wbook = ex_app.Workbooks.Open(sFilename)

' Which sheet do we get our data from
Set ex_wksheet = ex_wbook.Worksheets(1)

After this point, I couldn't proceed.

Experts please shed some light on this.


Thanks

RK
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search