Userform As A Standalone Vb Main Interface
Oct 17, 2006
In order to beutify my prog's interface, i would like to open the Excel file(active VBA) with the worksheet in the minimized background or hide, i.e. only the Userform or a Dialog window, from the right beginning on! as if it was a standalone VB main interface.
View 3 Replies
ADVERTISEMENT
Jul 18, 2007
I'm writing a program on VBA for Excel and I've succeeded in just displaying the Userform when opening the file. I have set the ActiveWindow.Visible option to False and the Application.Visible one to false as well so that i only have the user form displayed.
However, if i try to open an excel file via "My Computer", the file doesn't open. I also noticed that when I was leaving the application.visible option to True, i couldn't access the application while the userform was running. I think i need to do something with an event, but i can't find the event corresponding to opening a file oustide Excel.
View 2 Replies
View Related
May 29, 2008
I have one workbook with two worksheets (Jan-JUly and Aug-Dec). I am using a userform to add data into worksheet ("Jan-July"). But I do not have any clue - How do I update the other worksheet (same data like name,join year etc)worksheet("Aug-Dec") at the same time. I used two worksheets because worksheet doesn't support 370 columns, and to make my life easy. UserForm add data into Column A to M (worksheets Jan-July), rest is done manually. I have also attached the file.
Private Sub dataAddButton_Click()
Dim dataCheck, eMsg As String
Dim strLastRow As Integer
Dim x As Double
strLastRow = xlLastRow("Jan-July")
'get Last Row
With dataInput
'dataInput name of userform
If (.fNameBox.Value <> vbNullString And .fNameBox.Value <> vbNullString And .joinYearBox.Value <> vbNullString) Then
'textbox validation value can not be empty......................
View 2 Replies
View Related
Apr 21, 2014
I'm closing in on the final stage of a large project and I've run into a road block. The following line of code is preventing my users from being able to select specific page ranges when using the Print Entire Workbook option in the print menu.
[Code] .....
I've attached the latest version of my form (with significant support by jaslake) to explain what I'm attempting here. The attached form has several macros that activate upon open; including a user form. The password for the workbook/worksheets/VBE is "j".
Attached File : HCT-RCS ITP V1.89.xlsm
View 14 Replies
View Related
Jul 6, 2012
I am trying to create a way to protect and unprotect all sheets and the worbook by means of a Userform pop up interface.
I have managed to create the Userform but what the code will look like and where to place the VBA code that will make it work, Also i would like to automatically save the sheet/s as i switch between them. so that any updates made to the sheet will be automatically saved when i move to the next sheet and also when i protect or close the workbook.
View 3 Replies
View Related
Jun 17, 2011
I am trying to create a "mainmenu". On a Userform using API calls.
Created a Userform and named it Form1.
Added a command button to the form and named it Command1.
In THISWORKBOOK code:
Private Sub Workbook_Open()
Form1.Show
End Sub
[Code] .........
I open the file and Form1 is shown with its command button. When I click the command button I get an error:
Run-time error 49:
Bad DLL calling convention.
What is the correct convention?
View 4 Replies
View Related
Nov 21, 2006
How do you make it so when a user form is open you can still interface with the backround (the Spreadsheet) For example like the Microsoft Tool Boxes.
Right now, when you use the userform you cn only select things on the userform. I want to use the userform as "quick view" of the spreadsheets main Values.
View 9 Replies
View Related
Feb 19, 2008
I often need to retrive info from SAP and fill in an excel document with it. Is there a book or a web page where I can find macros that will help me do that?
View 9 Replies
View Related
Jan 1, 2008
I'm trying to write a macro in Excel to interface with "Attachmate".
My problem is when I do a "CreateObject" I receive error for active x can not create object.
I looked in the Excel Ref Lib for either "Attachmate" or "Extra". and could not find them.
Does any one know for sure if Excel can work with "AttachMate" if so can you provide directions.
I'm using Office 2003 Pro, Windows XP.
As a side note I've read of "AttachMate" can be coded to work with "Excel", but so far not the other way around.
View 9 Replies
View Related
Jun 8, 2007
I am trying to create a user pop-up box that can accomplish the following:
a. Pop up box that requests an input for a particular machine number, type of error and also a particular calculation type (STDEV,Average,etc).
b. The result will be displayed either in a tabular format or if applicable, a chart
I have 10 worksheets where each worksheet is a different mahcine ID. Contained within the worksheets is various data-sets(Data listed by week). I am trying to enable my mangers ability to not have to look through my data or choose a worksheet within my workbook. I would rather have a input screen that would give him a choice.
View 3 Replies
View Related
Jun 12, 2008
I have been tasked by the company I work for to come up with a simple to use interface that can be used by someone with little understanding of excel to set the autofilters to certain settings.
So here is what I have:
2 sheets (each with the same number of columns but different data which corresponds to good and no-good)
Each column has an autofilter but only two on each sheet need to be set.
One filter controls valve type (of which there are 10) and the other controls running condition (startup and normal)
Now my employer wants something that is basically idiot proof so that someone can simply open up the excel file, input the valve type and running condition, and be rewarded with only the corresponding data and charts. Now the filters are already in place, the charts already exist and the only thing left is the user interface.
View 14 Replies
View Related
Jun 21, 2006
is it possible to control a device through GPIB interface using excel VBA?
View 4 Replies
View Related
Jun 4, 2006
I am working on a workbook that contains drop-downs in various cells. The source for these drop downs are several Named Ranges on a tab named 'Drop Downs'.
I am locking the whole spreadsheet down so that people are not messing with the format, etc. (which is the current problem). So I don't allow people to add/delete rows, etc.
I am trying to think of a good interface to allow users to modify the entries in each drop down list (i.e. they may need to add a person to the "Resources" Range which feeds into a drop-down box elsewhere).
So, people should be able to add/delete items. I was thinking I would put a little 'X' next to each entry, such that when pressed - it would delete the corresponding entry. (Using the Assign Macro on a Text Box). However, I have to assign each 'X' a method to call - and I can't pass in an argument - so if I assign them all the same macro name - I won't be able to figure out which one was pushed. And the number of 'X' will be dynamic, so I can't hard code a bunch of functions. I don't really have a good idea for allowing additions yet (other than a button that prompts for the name and then adds it in).
I guess I could just use a Form that allows editing of the data (that would be easy and powerful to do), but I don't really want to do that - I want it to be editable within the excel spreadsheet itself.
View 6 Replies
View Related
Apr 27, 2012
I've been trying to modify this code in several ways but I can't figure it out, I'd like to
a) use different sections for the email generation where the email address/surname/forename/location are in my user database
b) have a popup screen appear for the body of the email text, I don't like the idea of my secretary having to go into the code to change the text
c) another popup box requesting an email identifier that will set a 'flag' in the Email Information column to show they've had that email and (this may be ambitious) to record the body of the email text somewhere that I can review so there's a record of what's been sent out
This is the code
Dim oXlWkBk As Excel.Workbook ' Excel Work Book Object
Dim oOLApp As Outlook.Application
Dim oOLMail As MailItem
Dim lRow As Long
Dim olMailItem
[code]....
View 3 Replies
View Related
Sep 18, 2006
I built a web form interface which I use to adjust orders on a web-based system our company uses.
The code I have looks at a sheet, checks if the line needs adjusted, makes adjustments as needed, and then clicks a box for lines needing ordered.
Here is the code I use:
Sub Adjustorder()
Application.ScreenUpdating = False
Dim ie As Object
t = ThisWorkbook.Sheets("Adjust").Range("C3").Value 'checks for valid orders to adjust
If t = 0 Then MsgBox ("No Skus to add"): Exit Sub
Set ie = CreateObject("InternetExplorer.Application")
With ie
This all works fine, but the amount of lines can be anywhere from 1 to 11,000. The fewer the amount of lines needed to loop through, the faster it does each line. With 11,000 lines it took nearly 1 second per line. With 200 lines it took 2 seconds for all of them.
View 9 Replies
View Related
Aug 14, 2014
In my attached sheet.. I want the result from data sheet.. I have to enter the batch no and pallete no.. then all the data have to display in result sheet
View 2 Replies
View Related
Jul 11, 2009
I’m using this code to run consecutive programs, which works really well, apart from one little glitch.
View 3 Replies
View Related
May 27, 2006
how to hide the main bar from Excel? the one where says "Microsoft Excel - "Name of the workbook"
View 9 Replies
View Related
Nov 6, 2009
I created a popup menu when you click the right mouse bhutan .. ok?
Now I would like to access the pop-up Main excel, where you click with the right mouse button and appears Cut, Copy.
then I would like to add a new a item in this pop-up
View 9 Replies
View Related
Dec 13, 2008
I have Sheet 1 that does some calulations and will Output my values e.g.
1X2X
44XX
3XX1
there are also - - - - in the cells for some cells that does not meet my calculations..
So now i have a bunch of - - - - and 1X2X numbers inside sheet1.
Now what i want is to display a Summary of my Cells in the MAIN sheet. just the cells which contains values like 1X2X only.
View 6 Replies
View Related
Nov 29, 2013
I have a bunch of spreadsheets in a folder and I need to take one line of each spreadsheet (which is in the same place on every one) into a master spreadsheet.
I am always adding to the spreadsheets in the folder.
Is there a way to have my master spreadsheet look out for changes in the folder and when there are changes add the row into it?
View 2 Replies
View Related
Feb 20, 2008
I receive everyday 100 excel sheets contaning data out of which i have to copy only 4 cells- amount, name, invoice number, vendor name into the master excel sheet. So i every time one all the excel sheet one by one and copy particular cells- e3, h45, l9,x0 and paste them one by one in the master file which i had mainted to treack the invoices issued.
Is there any shortcut where as i can minimize my copy paste work and click a button after opening each file- which i think i have to do as there can be no shortcut to it, and the 4 cells can be copied to my master file.
View 9 Replies
View Related
Jan 5, 2009
Is there anyway to change the following code so that it will save and close all workbooks except the one that has this code?
View 3 Replies
View Related
Apr 11, 2012
I have a main spreadsheet that lists all the members and profile URLs for members in a forum. In Sheet 1, Column A is the username and Column B is their profile URL.
In sheet 2 I have a list of the members who are in listed in a particular category in the forum. However, I don't have the profile URL data. What I want to do is create a macro that look in Sheet 1 for the username and if profile URL is thier, copies that into sheet 2 next to the appropriate username.
View 1 Replies
View Related
Oct 23, 2013
how to specify a file extension type for a browseforfolder part of what i've been doing.
It's not calling correctly as i'm not sure how to feed the inputData string back into the main.
Obviously there's probably better ways of doing this, but can my way be corrected easily?
I've been looking into ByVal and ByRef, but have only seen examples goin from main to the sub and not the other way.
Code:
Sub Main()
Dim strFolderName As String
Dim strFolderTest As String
Dim FRCntrHiLim As Variant
MsgBox "before calling inputbox"
Call InputBoxTest(inputData) '
View 4 Replies
View Related
Aug 7, 2006
I went through your board and found the code below posted My Mr. Tom Urtis.
I tired it and it worked fine except that it needs another workbook.
Can it be changed to work in the same workbook to copy to a sheet named as Main from all other worksheets that I can chose?
Sub ImportDistricts()
'Instructional Message Box
MsgBox "Click OK to access the Open dialog." & vbCrLf & _
"Navigate to the folder path that contains" & vbCrLf & _
"the District workbooks you want to import." & vbCrLf & vbCrLf & _
"When you get inside that folder path," & vbCrLf & _
"use your mouse to select one workbook," & vbCrLf & _
"or use the Ctrl button with your mouse" & vbCrLf & _
"to select as many District workbooks" & vbCrLf & _
"as you want from that same folder path." & vbCrLf & vbCrLf & _ ....................
View 9 Replies
View Related
Sep 24, 2008
I've been using this code to make menus for all my Excel sheets since NateO made it back in 2003.
- The workbook has 370 sheets, 365 of them are one day per month with the tab named ddmmmyy.
- The Main Menu in this file puts the months Jan, Feb, Mar, etc in cells A3:L3.
- In the single cells under each month it put the month day tab name (ddmmmyy) and hyperlinks it to the sheet tab.
I would like to do two new things.
1. Put the name of the month in everyother cell in row 2, so Jan would be in A2, Feb in C2 and Mar in E2, etc.
2. Put the day of the week for each date in the cell to the right of the date. So the column heading would be Jan in A2, 01Jan08 in A3 and Tue in B3.
I thought I could make another macro and just insert the rows after the Main Menu was built and then VBA copy/paste TEXT(cell,"ddd") down the ranges, but thought there might be a better idea out there...
Sub Workbook_TOC()
Dim ws As Worksheet
Dim wsNw As Worksheet
Dim z As Integer
View 9 Replies
View Related
Dec 9, 2013
I have an extensive excel spreadsheet in which the user adds information to the tab labelled "Input here". I then want the information to transfer to the 6 tabs (Boss 1, Boss 2, Boss 3, Boss 4, Boss 5, 2013) based on the information in column C and column G. (It also auto sorts alphabetically.)
I can get the info to transfer to 5 of the tabs without an issue (using column C) but have been unable to transfer to the tab labelled "2013" in which I need to use column G. I have tried changing my formula and replacing all the C's with G's but that did not work. In essence, I want anything that states we were notified in 2013 to transfer to the "2013" tab. I added an additional colum (Date Notified (Data)"
View 14 Replies
View Related
Mar 25, 2014
I have a data sheet that I enter all data into. I would like to divide the data into different sheets depending on the month the job was entered. Please see a sample I have attached. I have tried to convert the month (colE) into a figure (colF). I am hoping the data automatically copies across into the correct month sheet or perhaps I can push a button and it will do it for me. Data will get entered on a daily basis by staff but only onto the main sheet, this will then by some miracle be duplicated into the corresponding sheet without loosing any data on the main sheet.
View 8 Replies
View Related
Jan 6, 2010
I am in need of an Excel Macro to help me create an address list by market. For simplicity sake I’ll set up a mini-example: I have an Excel document with a MASTER tab that lists the Market (Column A), a person’s name (Column B) and their Phone number (Column C). What I need to macro to do is read column A and make a new tab for each market in that column, then populate the name and phone fields accordingly.
A found one macro that was close, but it does not automatically make a new tab (I have to do that manually) and it does not refresh the sheet each time I open it, so when I run the macro again I get duplicate entries.
View 13 Replies
View Related