Can´t find my userform in Excel 2010
Hello to all!
I need help! I created a very big userform for a survey in an Excel 2010 worksheet. I created a small macro so it will load my userform. I created a new group in the Toolbar and added a button that called the macro. It worked great. I closed the worksheet,
closed my computer.
Today, I am opening my worksheet now and I do not find my userform! I click the button and it doesn´t work. I go to VBA and can´t find my userform. Please help!
Thank you.
There was a VBA bug but it was fixed around SP2 time. It might have been after, so update with latest updates as well. In the men time I suspect you've lost your userform unless windows has kept a version in the background.
In Windows Explorer right click the file and select Properties. Check the previous versions tab.
With UserForms I've learnt to keep a copy in a file I never run. After updating I copy to another file to test :-(
Rod Gill
Author of the one and only Project VBA Book
www.project-systems.co.nz
Similar Messages
-
How can I recover a previously saved Excel 2010 workbook
How can I recover a previously saved Excel 2010 workbook? The I mistakenly deleted a worksheet from the version I am now using and saved that version and would like to recover the older version with the worksheet I deleted. Thanks for any help
Hi,
Just checking in to see if the suggestion of Don's was helpful.
Please let us know if you would like further assistance.
Jaynet Zhang
TechNet Community Support -
Using data from a table in an external sheet can be done but is tricky. I would like to find rules supporting this feature. Also, I'd like to find discussions of other little known features to improve and add sophistication to custom spreadsheets
Please repost your inquiry in the more appropriate
Microsoft Excel Forum. Thank you!
Carey Frisch -
Problem closing userform in Excel 2010
I've got a spreadsheet that has a series of control buttons to call various userforms which have similar formats for data entry.The first one works fine. The second one works until I try and close out of it with a cancel button. Then I get a Run time error
91 after the form has closed. The macros are very simple and I cannot work out where I'm going wrong. Any help gratefully received. The code below is the only code that uses UserForm2 and the error shows for Sub Pork().
Button Code:
Sub Pork()
UserForm2.Show
End Sub
Form Initialise Code:
Private Sub UserForm_Initialize()
UserForm2.Show
End Sub
Form Close Code:
Private Sub CommandButton5_Click()
Unload Me
End SubHi,
This is the forum to discuss questions and feedback for Microsoft Excel, this issue is related to Excel DEV, please post the question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Can't Rename Group in Pivottable (Excel 2010)
Hi,
I have a pivottable with the names of our company's resellers for 2013.
Due to some errors in our booking routines, some resellers have different names but are actually the same reseller.
So in the pivottable that sums revenue per reseller, I try to group these different reseller names in one group and give the group the correct name of the reseller.
(Eg.
Group6
A Gain A/S
A Gain Crayon A/S
For some reason, I cannot rename the group Group6 to "Crayon A/S"!
I can rename it to "Crayon" or "Crayon A/" but not to the name that I need.
Even stranger, I sort the resellers on revenue and when I try to rename to "Crayon A/S" the sort disappears and the name of the group reverts to Group6.
I did not have any grouping before in this pivottable.
"Crayon A/S" is NOT the name of a heading".
The "/" is an acceptable character as I CAN rename to "Crayon A/" without the "S".
Haven't been able to fin anything about this strange behavior on the Internet.
Anybody have an idea?
Thank you in advance for your help.Hi,
Based on my research, the name you're trying to use may already exist. You may try to simply add an empty space at the end of the name to see the result.
If still no luck, you may share the file to us via OneDrive and we'll help you find the cause. Be sure you have the private data hide before uploading.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Can't find "save as" for excel file in Xcelsius
Hello All
I have created a dashboard using Live Office. I made some changes in my excel which is in my dashboard. Now I want to save the excel from xcelsius to my desktop. But I don't see any save as option in excel sheet inside my xcelsius file. I can import the excel files from my desktop but I don't see any option for exporting my excel to my desktop with Live Office connections. Is there any way to do this? Please help....
Thanks
Raghavendra.GHi Raghavendra,
Another way is: you can save the excel to BOE using 'Save to BOE' button in Live office tab and then open the excel in BOE and save it where ever you need it.
Regards,
Sanjay
Edited by: sanjay.madala on Jan 13, 2011 1:06 PM -
Does Microsoft word and excel come automatically with a new Mac Pro 13 inch laptop?
yes you have to buy same...., but you dont buy Microsoft products from the APP store, its a Microsoft product
Microsoft Office for Mac | Office For Mac
www.microsoft.com/mac
There is a FREE version nearly identical , many people love and use it
OPEN OFFICE
http://www.openoffice.org/ -
"Rows to repeat at top", in Page Setup/Sheet disabled in Excel 2010
I have read all of the postings on this question. I am having the same problem! However I do not see any solution. I see a lot of "I think's", or "try this'", but no clear cut-solution. Let me restate;
I am running Excel 2010 in Office Professional:
I want to print a long spread sheet and I would like the title row repeated on the top of each page. I specify the print area range. The first row is frozen, so that when I scroll through my work on screen, I can differentiate the column information by having
the first row frozen. I want this to happen when I print this long document.
I go to print and go to Page Setup. I select the "Sheet" tab. The Print address bar area is disabled (grayed), but my print range is there. Under "Print" Titles", both selections are disabled (grayed); "Rows to Repeat at Top" and Columns to Repeat at Left"
are unavailable for selection. The address selection button on the right, of each of these three address range bars are also disabled (grayed).
This worksheet is on my hard drive. It is the only worksheet in the file. When I click on the worksheet tab, it does not say "Ungroup Sheets" which means that sheets have never been grouped.
I have been using Excel since Excel 95. I have done this many times in past versions, and it is a relatively simple procedure. Does any know why I can not access this feature in Excel 2010?Here we are 15 months later and Microsoft Excel 2013 has the SAME ERROR
If one chooses:
Print Preview
Page Setup
Sheet
Then the print area and print titles (Rows to repeat at top, columns to repeat at top)
are all grayed out and cannot be selected.
If, however, I choose the
page layout bar and click print titles then
everything works fine.
Thanks for the solution!!! -
Excel 2010 - Userform - VBA How to stop 'Job No' from duplicating itself on next empty row
Hi there
Thank you in advance for taking the time to check this out.
Objective:
To prevent duplication of incident numbers in the datasheet, and format the job number with a prefix of
Inc- at the beginning. I currently have the cell customization set to “Inc”General but that only inserts the prefix in the cells on the datasheet, but is not showing in the disabled textbox in the userform.
The Problem
I have a ‘Job Number’ that is generated each time the form is opened and when the ‘Save’ button is clicked the data from the form is transferred over
The job number is generated from the previous entry +1 (auto incrementing the old fashioned way).
The problem arises when the ‘Save’ button is pressed repeatedly, the same job number and data is duplicated on the datasheet.
Is there some way to ensure that the number generated is unique, and if the ‘Save’ button is repeatedly pressed that it will just over-ride the existing information?
The number format currently used is 20150003 (incremented by 1). But what I’d like to be displayed in the form is
Inc- 20150003
The following code is in the form_initialize procedure.
Me.txtSEC_INC_No.Enabled = True
Dim irow As Long
Dim ws As ws_Incident_Details
Set ws = ws_Incident_Details
'find last data row from database'
irow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Row
If ws.[a2].Value = "" Then
Me.txtSEC_INC_No.Text = 0 ' If no value in Col A, it will return a 0
Else
Me.txtSEC_INC_No.Text = ws.Cells(irow, 1).Value + 1
End If
I’d be really grateful if someone could help me out, or perhaps direct me to where I might find some coding that will achieve the result I am seeking.
I have just uploaded the latest version
My Sample form is linked to my Dropbox so you can see how it currently works (or doesn't work)
With much gratitude,
TheShyButterfly
Hope you have a terrific day, theShyButterflyI am striving to improve my VBA but ... I am far from anywhere near in understanding the code that you have in your file. I feel really bad in saying that, but I am not a pretender, and will acknowledge when I am over my head.
I was thinking "simplified" :) ...
Don't worry, also Rom wasn't build in a day. :-)
I already answered the question about the duplication of the Job number in this thread:
https://social.msdn.microsoft.com/Forums/de-DE/52f3c62f-b26e-4573-b7c2-8e7203786d7f/excel-2010-vba-userforms-vlookup-via-textbox-display-result-in-another-textbox?forum=exceldev
So let us talk a little about the TAG property, thinking "simplified" and how to save the data:
Most people start with code like this when they start there first Userform:
Cells(MyRowNumber, 1) = txtBoxA
Cells(MyRowNumber, 2) = txtBoxB
etc. many many lines till
Cells(MyRowNumber, 56) = txtBoxWhatEver
And then, after Version 1.0, they realize that they also want to load data from a row into the form. And they copy all the lines and exchange
the parts before and after the
"=" like this:
txtBoxA = Cells(MyRowNumber, 1)
txtBoxB = Cells(MyRowNumber, 2)
etc. many many lines till
txtBoxWhatEver = Cells(MyRowNumber, 56)
And maybe you have another 56 lines to "clear" the Userform, and maybe more lines... over 150 lines just for this... that is really tremendous.
I will not be
too harsh,
if it works, then
it's okay.
But often many people struggle when they look into the code because, which column in the sheet is written by this line?
Cells(MyRowNumber, 56) = txtBoxWhatEver
I've often seen that people change the code to this:
Range("A" & MyRowNumber) = txtBoxA
Range("B" & MyRowNumber) = txtBoxB
etc. till
Range("BD" & MyRowNumber) = txtBoxWhatEver
which is more clearly, but you must revise
150 lines!
And that is the point for the TAG property, which is in fact just a string. So when we write the column name ("A", "B", etc.) into the TAG property of a control, you can change the code to this:
Range(txtBoxA.Tag & MyRowNumber) = txtBoxA
Range(txtBoxB.Tag & MyRowNumber) = txtBoxB
etc.
And now the 1st trick, we can use a loop and visit all controls at once:
Dim C As MSForms.Control
For Each C In Me.Controls
If C.Tag <> "" Then
Range(C.Tag & MyRowNumber) = C
End If
Next
And when we want to load data from a row into the form, it's the same, just the other direction:
Dim C As MSForms.Control
For Each C In Me.Controls
If C.Tag <> "" Then
C = Range(C.Tag & MyRowNumber)
End If
Next
And to clear the form is also the same:
Dim C As MSForms.Control
For Each C In Me.Controls
If C.Tag <> "" Then
C = ""
End If
Next
So we can remove over 150 lines and do the same with just the 18 lines above.
Isn't that a simplification?
Think about that for a while.
Ready for the next trick? ;-)
As the TAG property is readable and writeable we can use Sub UserForm_Initialize and save a lot of manual work:
Private Sub UserForm_Initialize()
Me.txtBoxA.Tag = "A"
Me.txtBoxB.Tag = "B"
'etc. till
Me.txtBoxWhatEver.Tag = "BD"
End Sub
No time to waste,
here comes the next one. ;-)
In your file, you can have named ranges, but always have headings! And so we can get the column name e.g. from a named range:
Me.txtBoxWhatEver.Tag = GetColumnName(Range("WhatEver"))
Function GetColumnName(ByVal R As Range) As String
Dim S As String
S = R.Address(1, 0)
GetColumnName = Left(S, InStr(S, "$") - 1)
End Function
Or you can use Range.Find and search for the header int the sheet and get the column name directly.
The benefit is that your form works even when the user change the layout of the sheet!
Simple
as it gets
(almost).
Andreas. -
Can't export from ECC report to Excel 2010 with more than 65 K Rows
I see several posts about Excel 2007 and the 65K row limitation, but we are rolling out Office 2010 (Excel 2010) and find that it still will not allow download of more than 65,000 from an ECC report screen.
Excel 2010 is supposed to handle over a million rows, and user is receiving an error message that they can not do this.
Will SAP allow download to Excel 2010 of more than 65K rows?
Are there Excel settings, or GUI levels / settings we have to have ?
Ruth JonesDetails from the end User:
When you export line items from any detailed line item transaction in SAP that supports exporting to an excel format, SAP will only allow you to export 65K+ lines, equal to the number of line items that were available in the Excel 2003 format. If you have more than that many line, you have to download the file as u201Cunconverted.u201D While you can then open the u201Cunconvertedu201D file in excel, it is not properly formatted correctly, and may contain page headers and footers that need to be deleted. In Office 2007/2010, excel was extended to 1 million+ line items. When will SAP excel integration be upgraded to expand beyond the old 65K limit on number of exportable line items in excel format?
For example, transaction FBL3N is used to display line items in GL accounts. Line items are routinely exported for further analysis in Finance. GL accounts often have more than 65K line items. When you try to export these results to a spreadsheet format, you will get a message that the list is too large to be exported. However, if you select the unconverted format, you will be able to export the file. Here is an example: (Note that this is only one example with one transaction, there are many more SAP transactions that have this same issue.)
From the Menu, she if following the path List --> Export --> Spreadsheet
Receives the pop-up box entitiled: "Export List object to XXL", with words, "An XXL list object is exported with 71993 lines and 20 columns. Choose a processing mode". Radio button choices of Table or Ptivot Table. She chose Table.
Then receives a message that (at the bttom of the page), List Object is too Large to be Exported. Help says this is message PC020. But offers no further information. -
I have an HP Pavilion g7-1070us Notebook PC Running Windows 7. I came with Office Starter preloaded. Today I bought Office Home and Student 2010 and downloaded it online (or so I think). Now I can't find the 2010 version and the Starter version is still on my computer just as before. I contacted MicroSoft online and they suggested I either I install Internet Explored 9 or contact my browser (Foxfire) for help.
I have an HP Pavilion g7-1070us Notebook PC Running Windows 7. I came with Office Starter preloaded. Today I bought Office Home and Student 2010 and downloaded it online (or so I think). Now I can't find the 2010 version and the Starter version is still on my computer just as before. I contacted MicroSoft online and they suggested I either I install Internet Explored 9 or contact my browser (Foxfire) for help.
-
I created an Excel template which includes VB and macros as an EXCEL.XLTM template file (I used a template file to keep users from overwriting the sample template file), but I have noticed that when users save the template, Excel 2010 defaults to saving
the new file as a XLSX file (removing all the macros).
I know you can set Excel 2010 to always save as a certain format, but I really would prefer not forcing all Excel files to be macro enabled for the user
Is there a way to default the Save type to XLSM for this template only? Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
My users aren't exactly Excel savvy, so I wanted to make it as simple as possible for them.
Thanks!
Alan EdwardsHi Alan,
>> Is there a way to default the Save type to XLSM for this template only? Like some code that I could put in that when the users saves, it saves as a macro enabled XLSM type only for this template file?
In my option, you could achieve this by adding Application.GetSaveAsFilename Method to the workbook BeforeSave event. Some key code like below:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim FileNameVal As String
If SaveAsUI Then
FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
Cancel = True
If FileNameVal = "False" Then 'User pressed cancel
Exit Sub
End If
ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
Application.EnableEvents = True
End If
End Sub
But there is a limitation of this workaround, in this workaround, the save as will only support the macro enabled type, other save as types like "xlsx" will be ignored.
For more information about Application.GetSaveAsFilename Method (Excel), you could turn to the link below:
#Application.GetSaveAsFilename Method (Excel)
https://msdn.microsoft.com/en-us/library/office/ff195734.aspx
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Excel 2010: I get the error message "This file can't be previewed because of an error in the Microsoft Excel previewer." even though Advanced Properties is set to Save Thumbnails for all Excel Documents and I've run Repair on Microsoft Office.
I don't know what else to try.
Any help would be appreciated. Thanks.A hotfix request has already been submitted for this issue and we have also documented it here
http://support.microsoft.com/kb/983097
Thanks.
Tony Chen
TechNet Community Support -
After having to re-install my start-up drive recently I am getting a message with Adobe Premiere Pro CS5 that it can't find any "capable video play modules" and asks me to "update" my "video display modules". I am using a mid-2010 iMac 27" with OSX 10.7.3. How do I do this?
Premiere is an Adobe application and is supported in their forums.
Good luck.
x -
We use about 20 excel files to build a consolidated financial statement for our company. Some of the files were built when the computers were running 2003 and some when we had 2007. We are being upgraded to Windows 7 with Office 2010. In
2007, we would simply highlight all the files in a folder, right click, and open. Once they had all refreshed for new data, we would close them all. Now with Excel 2010, we've highlighted all the files, but when we right click, we get a message
that says some files may present an internet security risk. Then it ask if we want to open anyway. If we say yes, we get a box that asks us to scan the files. We've done a scan, but at the end it still doesn't open the files. If we
say no, it does nothing. Either way, we're not getting the files open except to open them 1 by 1. We're not sure how to get rid of this...any suggestions?In Excel 2010 setting those documents as trusted documents, or adding the folder containing as a trusted location may do the trick for you. There's a full description of what it does here
http://blogs.technet.com/b/office2010/archive/2009/09/28/trusted-documents.aspx but if you go into File, Options, Trust Center, Trust Center Settings..., and then Trusted Locations, you'll see the list of currently configured file paths that are considered
trusted on your machine.
At the bottom of that window you can check the option to allow trusted locations on the network (so you can trust the files that I assume are stored on a network location) and then add the location of those files to the list.
Note, this setting is done per machine profile, so if it does the trick for you then each person needing these files would need to do this. Also, keep in mind that by doing this you're removing some of the protections added into Excel, so you should only
go adding locations you know you can trust (not just the root of a network path where anyone and everyone might go saving spreadsheets they've downloaded form the internet).
Maybe you are looking for
-
Run Object command syntax in Lookout
In my application I want to move the CSV files saved in Lookout folder to another place in the network when a button is pressed. The command line for the run object is: "cmd /c move /y C:\Program Files\National Instruments\Lookout 5.1\2004\*.* \\leo-
-
How to handle screen resolution in session method
how to handle screen resolution in session method without bdc_insert .
-
Please can some one help me get rid of this thing so I can complete some work that is right up to the dead line. I d not have time to mess with this. How can I get back to the version that was working before I installed 4
-
I use a Canon camera that captures photos in JPEG, so that's the format my image files are in in iPhoto. If I edit them using Elements can I save them back to iPhoto as TIFFs? or do they have to be JPEGs? Thanks Greg
-
In which process get a address of object/variables
Hi every one i want to know that how can obtain memory addresses of variable or object. can it possible without using native thanks in advace surendra