Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.