Make A Choice Between € And $ In The Userform

Jul 24, 2008

I have 2 option buttons and 3 userforms. The passage between those userforms are made with "next/back" command buttons.

Options buttons are € and $ and they are in the first userform.

If the user make a choice between € and $ in the userform1, the following macro plays

If Me.Dollar Then
Sheets("Data").Range("B2").Formula = "$"
Else
Sheets("Data").Range("B2").Formula = "€"
End If
Problem

The other 2 userforms contains texts that depends on the choice made in the first userform/option buttons (€ or $)

Private Sub UserForm_Initialize()
Application.ScreenUpdating = False
Text1.Caption = Worksheets("Data").Range("B2").Value
Text2.Caption = Worksheets("Data").Range("B2").Value
Text3.Caption = Worksheets("Data").Range("B2").Value
End Sub

so in theory userform initialize should change the text and get what s written in Data Sheet.B2 cell automatically and INSTANTLY. But it only gets the initial choice and when I go back/forward between userforms and even change the € to $ or vice versa the inital choice remains in the next userforms.

View 9 Replies


ADVERTISEMENT

Make A Choice In An Extensible List

Jan 13, 2007

I have to introduce often the same entry (i.e. a firm or commerce name).
To avoid having to make all te time the same entries and to avoid entring the same firm with different spellings I imagine making a choice from a list, list that would be able to "learn" new entries.

Example: When I type the "D" of "Dupont de Nemours", Excel would propose all entries beginning with a "D", and if I introduce a name that doesn't still exist in the list, I should be made attentive to that fact and proposed to add that name to the list.

View 14 Replies View Related

Make Userform Show Data From Spreadsheet And Add Delete Or Make New Entry

Jan 24, 2014

I have a spreadsheet on sheet 1 with a list of customers and their information. So on column A I have the customer number (i.e. k968, e37, p528,...), on column B i have the customer's name, on column C the street's name, on Column D the house number, on column E the zip code and finally the city on column F.

Right now there are around 600 customers in this list.

I have made a userform with a combobox in which I want to select an existing customer (pulled from the spreadsheet). On the same userform I have textboxes (customer number, name, street, number, zip, city). When I select a customer in the combobox, I want this customer's info to show up in the textboxes. I want to be able to change the info and hit Next to store the changes in the spreadsheet. When I do not select a customer from the combobox, I want to add new info in the textboxes and hit Next to store this info as a new customer. The userform also has a delete button. Then I select a customer in the combobox, this customer (and it's info) should be deleted from the spreadsheet when i hit Delete. So the spreadsheet is variable in length.

View 5 Replies View Related

Pop Up Form Within Userform To Confirm Choice

May 11, 2009

pop up form within userform to confirm choice. I have a button within a userform that clears the form:

View 5 Replies View Related

Return Associated Data To UserForm For ComboBox Choice

Dec 11, 2007

I have a combo box on my userform. The selection made in the combobox will eventually control a calculation. I would like to generate some code so that when the user makes a selection in the combo box, and fills in all the requied info on the form, they can click a button on the userform which will generate a new combobox on the worksheet which would contain the user selection, along with the array that populates the combobox on the userform.

View 3 Replies View Related

Retain OptionButton Choice Between UserForm Calls

Feb 6, 2008

I have two option buttons on a userform and when the user selects an option button I would like it to stay selected when the userform is called again.

View 2 Replies View Related

Show UserForm Before Printing For Custom View Choice

Apr 9, 2008

When I click the excel printing icon, I want a userform to pop up in which I make the choice for a certain customview that I build. This customview must then be printout. Note that I want to use the standard Excel print icon, not a custommade one in the worksheet. I figured out some code, but it doesn't work. For instance my if structure returns "false" even if I did click that commandbutton, see the code below.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Static PrintRequest As Boolean
formMyview.Show
If formMyview.CmdCancel= True Then
MsgBox "printrequest canceled"
Unload Me
cancel=True
Exit Sub
End If
If PrintRequest = True Then
Exit Sub
End If
If formMyview.CmdOk = True Then
For Each Myoption In frameViewoptions.Controls
If Myoption.Value = True Then..........................

View 6 Replies View Related

Texts Automatically Change The Currency Depending On The Choice Made In The Previous Userform

Jul 3, 2008

I have options buttons in a userform, first is "$" the other is "€"

When somebody chooses one of them, it writes the choice to a cell in the data sheet. But when clicked on the next userform I want some of the texts automatically change the currency depending on the choice made in the previous userform.

The formula below was is example

=""&Data!$A$2&" / m³"

=""&Data!$A$2&" / kWh"

View 9 Replies View Related

Copy Range As Paste As Values Based On UserForm Option Button Choice

Nov 3, 2009

I have a frame (Frame1) on a userform added using Microsoft Forms 2.0 Frame. I have added option buttons to the frame named OptionButton1 thru OptionButton4. I am trying to add code where certain cells are copied and pasted depending on which optbutton is selected. I tried the following code but because the option button is a frame object it doesn't seem to trigger the event.

Private Sub OptionButton1_Click()

'copy level 1
If Me.OptionButton1 = True Then
Worksheets("Sheet1").Range("G10:G32").Copy
Worksheets("Sheet1").Select
Worksheets("Sheet1").Range("C10:C32").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
End If

End Sub

View 4 Replies View Related

Lookup Data For Drop Down List Choice & Show Blank If No Choice

Feb 6, 2008

I currently have a drop down menu in one of my worksheets, in which I have several different text values entered. What I would like to do is link each of those text values to a numerical value, which would be entered in to another cell. So if I select "Option A" from my drop down list, and Option A is equal to 200, I want "200" to show up in another cell. If I select "Option B" from my drop down list, and Option B is equal to 400, I want "400 to show up in that same other cell.

View 4 Replies View Related

Distribute Names To Lesson Choice Table By Choice Priority

Dec 7, 2013

I want to make a lesson table which distribute the names to lesson choice priority.

You can see detail and explanation at attached file. LessonChoice.xlsx‎

View 3 Replies View Related

Removing Selection / Choice From Listbox Once Choice Has Selected

May 8, 2013

I have a worksheet that has 8 activex listboxes. Each listbox is tied to the sames list of values (identified as a named range). The named range is a list of countries. Each country should only be selected once, therefore, I would like the selected country(ies) to not show up as a choice when the user makes a selection from another listbox. If this is too hard, maybe we can get a msgbx to appear anytime the users tries to select a country that has already been selected.

View 3 Replies View Related

Can You Make A Copy Of A Userform

Jan 11, 2007

I am simply trying to make a copy of a userform in my project.

Unless I am missing the obvious, how are you supposed to perform this operation ?

View 9 Replies View Related

How To Make Address Book With Userform

Aug 22, 2013

New to VBA, so here we go. I want to make address book with userform,is it possible with my example?

View 4 Replies View Related

How To Make Textbox On Userform An Integer

Jan 11, 2012

how I can make a textbox on a userform an Integer? So that I can add all the variables.

View 1 Replies View Related

How To Make Userform Search Data

Mar 11, 2012

I am trying to get my userform to search a worksheet for data.

In "A" I have a vehicle name (Audi, BMW etc) these names occur more than once

In "B" I have the vehicle model.

i.e:

A B
Audi A3
Audi A4
Audi A6
BMW X5
BMW M3

I would like to be able to have a command button on my userform (preferable one for each vehicle type) that the user can click on to then add the list of relevant vehicle models into a combo box.

i.e Click on the Audi command button and the combo box displays all the models in "B" that have Audi in "A"

View 9 Replies View Related

How To Make Columns In Listbox In Userform

Mar 20, 2013

I made an excel MAcro Sheet as I am not good in macros. How to make a columns in list box via text boxes in userforms.

View 2 Replies View Related

How To Make Userform That Works As Password Box

Jun 19, 2014

I want to make a user form that works as a password box. I have UserForm1 which is my "Menu" and I created UserForm2, which is my password entry form. The problem I have is that once I click "go" on my password box (which works fine), the Password Box closes but the user form remains open. I want the user form to close as well when I click "Go". So, my password box should close both UserForm1 and UserForm2.

Here is my code:

Private Sub cmdPasswordGo_Click()
Dim UserName, Password As String
UserName = txtUserName.Text
Password = txtPassword.Text
If UserName = "Chad" And Password = "Pass01" Then
Unload Me
Else: MsgBox "Your authentication cannot be validated"
End If
End Sub

My issue is that once UserForm2 is "unloaded", UserForm 1 is "active" but I cannot simply "Unload Me" again, I get an error.

View 1 Replies View Related

Make Userform Floating Monitor

Jul 22, 2008

i have a userform which displays a textbox which shows a variance in price terms based on a sheet which has live data via dde.

I would like to turn this userform into some kind of floating monitor if possible. At the moment - once you fire up the userform - the price in the textbox is fixed and does not change with the cell which fills the textbox on the userform. The only way is if you close the userform and re-open - then you will see the current price. I would like to keep this userform floating so that you can still select other cells on the sheet.
Is this possible?

Private Sub CommandButton1_Click()

Unload Me

End Sub

Private Sub UserForm_Click()

End Sub

Private Sub UserForm_Initialize()
With ThisWorkbook.Sheets("price").Range(ActiveCell.Address)
If .Value = "" Then
Range("D31").Select
Me.TextBox1.Value = "No Trade Selected"...................

View 9 Replies View Related

Make Loop For Disable Closing UserForm

Jun 4, 2014

I have below code for prevent to close a user form:

[Code] ....

But this work to me only one time, when i make a second press on close button user form close. I think i have to make a loop or something but i really don't now how?

View 10 Replies View Related

Make Textbox In Userform Equal Cell Value?

Jan 27, 2014

I am trying to make my textbox on the userform equal a cell value in a column. I need the userform to look at the last cell that has a value in a column and display that value into the textbox on the userform.

Ex. I am starting my data from Cell "O8" and the last possible row would be "O51" Starting with O8 I need my textbox in the userform to read this cell value. After each entry the next row in Column O will have a value, so I would need my userform textbox to read cell "O9" value the next time the user form opens. Here is what I got thus far:

[Code].....

It gives me a Compile Error: Invalid or unqualified reference.

View 3 Replies View Related

Make Lists In Combobox (userform) Depend On Each Other

Jan 13, 2009

I have constructed a user form with a set of comboboxes containing a number of choices. However, the different alternatives depend on each other, and instead of having all the choices available in the second combobox I would like to only have the "correct" ones depending on the choice made in the earlier combobox.

For example;
---------------
A-B-C
Car-Blue-USA
Car-Red-USA
Truck-Green-Sweden
Truck-Blue-Sweden

If I choose Car in the first combobox, I would like to only have the choices [Blue, Red] available in the second combobox, not the full set of data [Blue,Red,Green] and so on. However, I have two problems construction this;

1) If I make the rowsource A1-A4 for the first combobox, I get the alternative [Car,Car,Truck,Truck], not [Car,Truck]. It is possible to come around this problem by making a unique list in addition to the linked list showed above, such as;........

View 4 Replies View Related

Make Calendar Visible And Invisible In Userform

Dec 23, 2009

I have put calendar in my form and I want it to be visible only if I click on the combobox and make it invisible when date gets filled in the combobox.

I wrote the following code but it gives me runtime error -2147417848(80010108) Automation error :The object invoked has disconnected from its clients.

View 9 Replies View Related

Make Userform That Will Update List In Spreadsheet?

Dec 8, 2012

I am trying to make a userform that will update a list in the spreadsheet. Basically if a user types into a multiline textbox numbers (separated by line) like so:

5
10
15
20

then the macro will paste that data at the end of a list so that each number is in a new cell. The only thing I have that comes close is Range("A1").value = listbox1.value The problem with this is that it will input the entire list into one cell. I have attemped various things, like trying to get the list into the clipboard and pasting, but I haven't really had much luck.

View 7 Replies View Related

How To Make VBA Editor Show Userform Code By Default

Apr 25, 2014

When you create a userform in the vba editor, then go to another module, then return to the userform, you see the userform object by default and in order to show the code you have to right-click on the userform and select "view code".

How can I make the "view code" view the default view for the form in the VBA editor? (i.e. so that when the form is selected, I am presented with the code, not the object).

View 3 Replies View Related

Option Button To Make Visible Multi Pages In Userform

Jul 6, 2013

I have a user form with multipage.

With the use of the option buttons,the page needs to made visible or invisible.

Example: on Page one, i have placed radio buttons as page2,Page3&page4.

By default only page 1 should be visible and when we select radio button page2, page2 should become visible or else it should be invisible,when we select radio button page3, page3 should become visible or else should remain invisible.

View 5 Replies View Related

Make Now () = 06/29/2009 (make To Cells With Dates Equal Each Other)

Jun 29, 2009

I need to figure a way to make to cells with dates equal each other if the
day,month and year are the same but are placed into a cell at different times during the day. "Making Date Now () = (06/29/09) In another cell". Therefore, A1= Now() and E11 = 06/29/09

View 2 Replies View Related

Multiple Choice VBA

Feb 15, 2009

I have attached a file with VBA code. I want to be able to select more than one person in a drop down list (column C) and have those choices show up in that cell. The range you select from is called name, Column H.

I've looked at is a number of ways but my VBA code does not seem to work.

View 14 Replies View Related

Multi Choice Sum

Feb 4, 2009

I have a spreadsheet which have data auto inported. (thanks to previous help on here). I have now come up against the next problem.

I wish to make the mark up variable depending on 5 options (workings I13;I17)

the choice is selected in column b after the data has been inported

then down on Rows 75 - 79 i have the totals of my choices.

Unfortunatly i do not know how to do a variable sum

I have attached a copy of the workbook.

View 6 Replies View Related

Choice Of Value To Input Gives The Other Value

Mar 25, 2008

I have a percentage based calculation I'm using to estimate monthly expenditures and such.

Say I have a Total Sales Dollars in cell A1

Now I have my total expenditure dollars in cell B1

In cell C1 I have the percentage of what my total expenditures are vs my Sales dollars (B1/A1)

What I would like to be able to do is either be able to enter in the Expenditure Dollars (B1) or the Expenditure % (C1) and have it calculate the other field.

For instance if I enter a value in B1 it will give me C1, or
I can enter a value in C1 and give it a value in B1.

Is it possible to just use these two cells with formulas or maybe a CF??

Not sure if it's late in the day, but my mind is drawing a blank on this.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved