Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Can't see my worksheet in excel

Here's my code. When I run it, it doesn't show the worksheet opening and
viewing it. My code is in VB6 don't worry about the other stuff listed.

Thanks

Pat

Private Sub cmdprocess_Click()
Dim remove_selected As Integer
Dim SSQL As String
Dim mdlopt2 As New ADODB.Recordset
Dim stuff As String

'Dim col As Integer
'Dim row As Long


Dim Excel As Excel.Application
Dim ExcelWbk As Excel.Workbook
Dim NFRCWS As Excel.Worksheet
Set Excel = GetObject(, "Excel.application") 'Create excel object
Set ExcelWbk = Excel.Workbooks.Open("j:\nfrc.xls") 'open this workbook to
excel
Dim MyRange As Range
'Set MyRange = NFRCWS.Range("a65536").End(xlUp).Offset(1, 0)
Dim LASTROW As Integer

'Dim intloopindex As Integer
Dim ItemIndexes() As Long, x As Integer, iNumItems As Integer

Set NFRCWS = ExcelWbk.Worksheets(1) 'add this sheet to this workbook
ExcelWbk.Application.DisplayAlerts = True
'NFRCWS.Visible = xlSheetVisible
ExcelWbk.Application.Visible = True
NFRCWS.Visible = xlSheetVisible

mdlopt2.CursorType = adOpenKeyset
mdlopt2.LockType = adLockBatchOptimistic


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
My desktop worksheet shortcut will not open the Excel Worksheet Steve09 Excel Discussion (Misc queries) 2 September 17th 09 04:33 PM
compare excel worksheet and output difference to new worksheet Deb Excel Discussion (Misc queries) 1 October 31st 08 02:26 PM
Unable to Insert Worksheet/Move and copy worksheet Excel 2003 lukerush Excel Worksheet Functions 2 September 7th 06 05:05 PM
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet Aster Excel Worksheet Functions 3 March 12th 06 09:58 AM
How to link Excel worksheet tab names to dates in each worksheet? Pat Excel Worksheet Functions 9 January 31st 05 07:51 AM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"