Minimise Workbook / Display Form On Startup
Apr 11, 2006
i'm trying to put together a spreadsheet using excel 97 that uses forms for data input & display - the spreadsheet itself is used solely for data storage & no editing is done directly to ensure people aren't trying to mess about with the spreadsheet i thought it would be an idea to minimise excel when the spreadsheet is launched & have the forms pop up on screen instead. the problem i've got is getting the first form on screen whilst excel is minimised
Private Sub Workbook_Open()
frmSplash.Show
Application.WindowState = xlMinimized
End Sub
the spreadsheet launches, the splash screen launches, but excel doesn't minimise
if i use
Private Sub Workbook_Open()
Application.WindowState = xlMinimized
frmSplash.Show
End Sub
the spreadsheet minimises, but the form doesn't display - the excel taskbar button flashes to indicate something is going on clicking the taskbar button brings up the form & keeps excel minimised....but the staff who will be using this won't be happy with this at all!!!
View 2 Replies
ADVERTISEMENT
Oct 11, 2009
Would anyone be able to tell me how to display a promp at an excel workbook startup so that users agree to the terms and conditions?
View 4 Replies
View Related
Jan 10, 2010
In a multi sheet workbook (Excel 2007), could some one tell me how to force sheet 'Main' to be displayed?
View 2 Replies
View Related
Oct 9, 2008
I am working in Excel 2003 and have recently lost the Task Pane when I start Excel. The box in Tools Options to display the task pane is checked. I have modified the registry to include a DoNotDismissFileNewTaskPane value and have even added the following code to the Personal.xls file:
Private Sub Workbook_Open()
On Error Resume Next
Application.CommandBars("Task Pane").Visible = True
End Sub
If I remove the On Error Resume Next line I get the following error:
Runtime error '-2147467259 (80004005)' Method 'Visible' of object 'commandBar' failed
I did add the Analysis Toolpak last week but am not sure that this had anything to do with it.
I can go into the View menu and show the Task Pane and do have the CTRL+F1 option to display it.
View 9 Replies
View Related
Apr 25, 2008
I use Excel 2007 and I have an .xls that I've had set to auto-open at startup and has worked fine for months now. Alll of a sudden a couple days ago it stopped auto-opening, and I have to now manually open the .xls. I looved in the Advanced>At Startup setting and it's set to the correct folder. What other setting in Excel 2007 do I need to check that would be causing this startup problem?
View 9 Replies
View Related
Oct 7, 2007
There are two macros that i'd liek to add to my personal macro workbook upon startup of excel.
i tried to do them without coding but it appears that some actual coding is necessary.
1) i'd like to be able to select any # of cells anywhere on the page and hit ctrl+shift + n and have all of those selected cells read #N/A (the forumula is =na() )
2) i'd like to be able to select any number of columns (i do finance/econ research so all data is in chronological order from 1960-present along the columns. i.e. each variable is a column vector.) and be able to hit ctrl+shift+b and have VBA make a chart in a new sheet with my default settings
i've tried to do these but recording the macro hard codes the select cells for 1) and always runs into weird problems for 2).
View 9 Replies
View Related
Nov 10, 2011
Using Excel 2010.
I have a formula in a workbook that links to another workbook and returns a #VALUE! error. The formula is:
=OFFSET(INDEX('\srvrdatakenny cantrell$Kenny''s FolderPayroll[DI Staff List.xls]Sheet1'!$D$6:$D$60,MATCH(TRUE,'\srvrdatakenny cantrell$Kenny''s FolderPayroll[DI Staff List.xls]Sheet1'!$D$6:$D$60=B3,0)),0,2)
However, when I open the source workbook, the cell updates correctly. How can I get the cell's formula to update when the source data workbook is closed?
View 3 Replies
View Related
Mar 30, 2007
I have 2 forms. Form1 and Form2. I load Form1 to display. A button on Form1 calls Form2 to display. After I hit Cancel-Unload on Form2 it doesn't dissapear. How do I get rid of the residual image of pesky Form2 after I unload it and only display Form1 WITHOUT having to reload Form1 after Form1 calls Form2
In English
Form1 Displays
Form1 call Form2 to display
Form2 is unloaded by hitting a button on Form2
Form2 is unloaded, however, it's image still displays!!!
Need some way to force screen to refresh without having to unload Form1!
View 3 Replies
View Related
Dec 20, 2007
I have a macro that is designed to paste a row of formulas into each Subtotal line on a 30,000+ line spreadsheet. I have specified the formulas that I want to paste in the named range "formulas". The macro below worked fine for about 3000 lines, then threw the error Run-Time Error 1004: Paste Method of Worksheet Class Failed on teh line ActiveSheet.Paste. I thought it had just bogged down my computer, so I added teh ScreenUpdating and Calculation lines, but they made no difference. I also tried reducing the range to just a couple thousand lines, which also made no difference. I also have found some suggestions on this forum and others for this error.
In addition to it working fine for 3000 lines, then failing, there are a couple other weird things. One is that on the line in the spreadsheet that threw the error, the formulas were pasted in up to column AX, leaving columns AY through CR blank. The second odd thing is that this exact same macro still works on my sample data spreadsheet (which only has around 50 records).
Sub FormatTotalRows()
Dim rCell As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Workbooks("latest.xls").Activate
Range("formulas").Select
Selection.Copy
For Each rCell In Range("A3040:A5000")
If Len(rCell) > 0 Then
rCell.Activate
ActiveCell.Offset(0, 2).Select
ActiveSheet.Paste
End If
Next
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
View 2 Replies
View Related
Nov 10, 2008
I'm writing some code that analises data and I have been adviced that it is good practice to minimise the function .Select in macros, especially when i'm just copying and pasting stuff. (as .select will make the screen jump from one sheet to the other and back etc. but how do I minimise .Select in this example:
View 4 Replies
View Related
Aug 3, 2009
I have a database with a few hundred records. I can display the Data Form using Excel but receive the following error when I try display the DataForm with VBA? "ShowDataForm method of Worksheet class failed"
View 3 Replies
View Related
Jan 12, 2010
I have been using the GetOpenFileName method and a message box to return the filepath of a file and saving the filepath in a variable called Filepath. This worked just fine.
What I want to be able to do is display the the file path at any time in a message box, but not sure how to do this. I tried displaying the message box in a form and was going to look for some way to call the form, but the form does not return the message.
My code for this is as follows:
Module 1
Sub getfilepath()
Dim filepath As String
filepath = Application.GetOpenFilename(FileFilter:="All Files (*.*), *.*", Title:="Select a file")
UserForm1.Show
End Sub
Userform 1
Private Sub OkButton_Click()
Unload UserForm1
End Sub...........
View 9 Replies
View Related
Apr 23, 2014
I created a data entry form that contains a ComboBox. The ComboBox is based on a range that has three columns and many rows. The purpose is to have the user select an item from the first column, and the other two columns are automatically filled in on the table.
The form works and the data is transferred to the table as it should. The issue is that when you select the ComboBox, it displays the data from all three columns wrapped in two columns. Some of the data is repeated and it looks confusing. How do I have the drop down show only the data in the first column?
View 1 Replies
View Related
Jan 4, 2008
I have inserted a FileListbox in the form.
it displays all files but not folders how can i display folders?
secondly i want to select and open the selected file.
View 9 Replies
View Related
Jun 16, 2014
All i did was i just created a form to open a workbook from the directories.
Code to copy the data from that recently opened workbook to my workbook where I have my forms. I need to copy that data as in the case that i don't know the workbook and the sheet name i'am going to open as i may open any of the files!!
View 2 Replies
View Related
Jan 19, 2009
I created a table in excel, using it's Table feature, the first column has A - J, the second column has 1 - 10,
I then created a VBA form in VBA6,
How do i display that table and its 2 columns in a VBA form?
View 13 Replies
View Related
Jan 22, 2009
I need to display a selected area in an excel sheet in a VB form! I am not sure how to convert the selected area to an image ! The area already contains some images! I am attaching the file for ur refrence!
I need the portion which is within the frame to be converted as an image and get displayed in a Vb form!
View 3 Replies
View Related
Jul 7, 2006
I have a Excel database and a userform to look-up reocrds. I want to be able to connect a Data Sheet which is a PDF file to every product in the daatbase.
I have created an additional column and created hypelinks in front of each product. these hyperlinks are connected to the datasheet of that product which is saved on the drive.
I have created a field on the userform to display the respective hyperlink when a record is searched by user.
My problem is that the user form displays the hyperlink name, but its dead.
I want users to be able to click on the hyperlink to view the attached Datasheet. I have tried using Textbox and labels to display this hyperlink,
View 6 Replies
View Related
Jul 14, 2014
How would I create a simple user form to display a price based off the category selected.
User types in List Price, then selects 1 of 4 discount categories, it then displays that price.
An added bonus would be copying that price to another sheet, but not necessary..
View 2 Replies
View Related
Apr 23, 2008
I would like to create a user form that will display the results from a lookup formula. The userform would have 2 textboxes, so from the formula below BZ109 would be textbox1 and CA109 textbox2. Once data is entered in these textboxes you would hit submit to return the results in a message box. What would the code be for the sumbit button?
=VLOOKUP(BZ109, INDIRECT(CA109), 11, 0)
View 9 Replies
View Related
Apr 6, 2014
Can I search a document without opening it?
If not how do I open a file if not already opened without using "ON ERROR"
View 3 Replies
View Related
Mar 3, 2009
I have a workbook ("Time") that when opened displays a userform. I also have another workbook ("Master") that opens the "Time" workbook to retrieve information. Is there a way to use the Master workbook to open the Time workbook WITHOUT displaying the userform.
View 2 Replies
View Related
May 13, 2009
I have a workbook with a worksheet that contains 25+ graphs. The users scroll thru them vertically or hit print. I'd like to add a form that would sit on top of the worksheet that would have hyperlinks to various sections of the charts so the users can jump to a specific area w/out scrolling.
Is this possible and how would I do it. I know how to add hyperlinks to worksheet. I am not sure if/how I could add a form and have the hyperlinks therein.
View 9 Replies
View Related
Feb 10, 2013
I have problem on trying to copy value from another workbook in specific folder this my marcro that i record
Code:
Sub Macro3()
Windows("TSOM_SLA_daily_20130207.xls").Activate
Cells.Select
Selection.Copy
Windows("Autoreport.xlsx").Activate
[Code] .........
Below code that is about filter code, but above what is the code for import the value (only value don't need any format).
I want to use VBA button because it will be easier for next time if i want to update my work.
View 1 Replies
View Related
Mar 5, 2013
I have a hundred or more spreadsheets that I will be applying a utility to. I want to use one button on each sheet to call a form in the utility workbook. That form will have buttons that call individual parts of the utility.
I tried application.run("utility.xlsm!frmStart"). No dice.
I also tried: "utility.xlsm!frmStart". Same result.
How can I overcome this.
The reason I want my forms in a different workbook is the difficulty with maintenance and installation.
View 2 Replies
View Related
Jan 26, 2010
I kindly would like to have a form pop-up, when I open an XL workbook.
Once, then the user clicks OK, and all sheets are shown.
View 14 Replies
View Related
Aug 2, 2008
How to display the userform when the workbook is opened?
View 9 Replies
View Related
May 12, 2009
Have 2 workbooks very similar and need to copy a working user form to newer workbook. Exported and Imported the user form to the new VBA project but can't figure how to bring user form into the new worksheet.
View 9 Replies
View Related
Jun 1, 2007
I would like to create a pop up message that would automatically come up when someone opens one of my Excel workbooks. Essentially, I want to have some text regarding the confidentiality of the document, then require the user to click an "OK" button to continue.
View 9 Replies
View Related
Jan 4, 2006
How do I setup a STARTUP WIZARD in EXCEL which allows user can input information, and these information will be stored in the excel worksheet automatically.
The startup wizard is defined as a window which will pop up automatically when you open the Excel document. The wizard contains forms.
View 9 Replies
View Related