MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
The error I get is that the Object doesn't support this property or method.
'set variables to open Excel Dim objXL As Excel.Application Dim objWkb As Excel.Workbook Dim objSht As Excel.Worksheet Dim strFileName As String strFileName = (GetMyPath() & "Interface2.xlsm") Set objXL = New Excel.Application With objXL Set objWkb = .Workbooks.Open(strFileName, , False, , "thisisthepassword") For Each objSht In objWkb.Worksheets objSht.Visible = xlSheetVisible Next objSht objWkb.Run "Upload2Dbase" Set objSht = objWkb.Worksheets("SageDump") .Visible = True AppActivate objXL.Caption objSht.Activate End With 'destroy objects Set objSht = Nothing Set objWkb = Nothing Set objXL = Nothing
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
17 Experts available now in Live!