| | |
macro to make excel close
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
ummm that's not closing Excel. I think what you are trying to do is to create a form. With no tool bars, and limited controls for users.
If that is the case you will need a USERFORM. So that Users only see the information and cannnot modify the Rows/Colums.
Pressing ALT F11 will still take you to the VBA editor, and you should see your macro you already created.
If that is the case you will need a USERFORM. So that Users only see the information and cannnot modify the Rows/Colums.
Pressing ALT F11 will still take you to the VBA editor, and you should see your macro you already created.
Look Into The Excel Object. You can create/Manipulate excel documents with a VB Program (even with WSH alone) by using these objects. An Example
Basically, It just shows you HOW to work with it in VB. If you Google VB6 Excel.Application, Google will give you a whole lot of information on it. You can also read up on the excel object straight from the horses' mouth:
http://msdn.microsoft.com/library/de...ectmethods.asp
This way, you can work with the excel document (the cells, and everything) without ever having to set it's visible property to true (meaning, it stays hidden). Let me know what you come up with though.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
set xapp = CreateObject("Excel.Application") xapp.Visible = True ' Make a new Excel workbook: set workbook = xapp.Workbooks.Add set worksheet = workbook.Worksheets("sheet1")
Basically, It just shows you HOW to work with it in VB. If you Google VB6 Excel.Application, Google will give you a whole lot of information on it. You can also read up on the excel object straight from the horses' mouth:
http://msdn.microsoft.com/library/de...ectmethods.asp
This way, you can work with the excel document (the cells, and everything) without ever having to set it's visible property to true (meaning, it stays hidden). Let me know what you come up with though.
![]() |
Similar Threads
- Excel Macro VBA Help (Visual Basic 4 / 5 / 6)
- Excel Search Macro Help (Visual Basic 4 / 5 / 6)
- Problems with VB6 and excel (Visual Basic 4 / 5 / 6)
- Autonumbering in Excel (Windows Software)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to make Excel disappear!!
- Next Thread: Add shortcut in DEsktop automatically
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






