To Input Data Into Combo Box And Item Linked Words

Mar 6, 2007

I am trying to create a combo box whereby i need to populate a list of name into the box and when user click on the name, it will linked it to the corresponding letter in MS Word.

Have tried a number of codes available in this forum (to populate the combo box) but were not successful.

View 4 Replies


Input Data Automatically Based On Dropdown Combo

Oct 22, 2013

I have a form with a number of fields. There is a field at the top of the form for Part number. When I type in a part number I need the form to auto complete any fields that are linked (if i can link them). E.g., if the part number is 111 then based on info in another table the fields will be auto completed for me.

View 2 Replies View Related

How To Cause Each Item In A Combo Box To Do Something Different

Apr 6, 2008

I have a combo box(form control) and have it populated with data.

I want each item to do something so that when one is selected it triggers and event.

the items are:

Rounds 1 - 5
Rounds 6 - 10
Rounds 11 - 15...just like that all the way to 30

the worksheets are labeled "Rd 1", "Rd 2", "Rd 3" ...etc

When I click "Rounds 1 - 5" in the combo box, besides the "Summary" worksheet (which is where the combo box resides) only "Rd 1 - Rd 5" should be visible, I want all other sheets hidden, and when I click "Rounds 6 - 10" I want "Rd 6 - Rd 10" visible and all else hidden.

View 9 Replies View Related

Linked Cell Combo Box Hangs Running Macro

Dec 1, 2006

I am trying to create a menu that calls macros based on your choice using a drop down combobox (from the control toolbox). Everything works except: When i try to reset the drop down to "Main Menu" using the Linked cell $B$1 excel hangs and suts down evertime. What i would like it to do is reset the drop down to "Main Menu" each time one of the other drop downs are selected. I have really enjoyed this forum and it has been a great resource for me in the past I hope someone can help. I have attaching the file for review.

View 3 Replies View Related

Combo Box Frustration With Add Item

Jul 11, 2007

I simply added a combo box to my sheet and or word doc. I have tried using .additem, but I get nothing in the drop down. I am on 2003 SP 2.

I have tried the following:

Private Sub combobox1_form_initialize()
ComboBox1.AddItem "Computer"
ComboBox1.AddItem "Internet"
ComboBox1.AddItem "Book"
ComboBox1.Text = ComboBox1.List(0)
End Sub


Private Sub combobox1_userform_initialize()
ComboBox1.AddItem "Computer"
ComboBox1.AddItem "Internet"
ComboBox1.AddItem "Book"
ComboBox1.Text = ComboBox1.List(0)
End Sub

Neither gives me anything in the list.

View 9 Replies View Related

Set Combo Box Controls To 1st Item

Aug 9, 2007

I have a couple of combo boxes. I want to use a macro to control them: when I run the macro, all the combo boxes select the first item in the drop down list. My code is:

Sub test()
ComboBox1.ListIndex = 0
End Sub

run-time error 424, object required.

View 4 Replies View Related

Add Combo Box Item To List Box

Dec 1, 2007

I use ComboBox to add items to the ListBox in userform

I am tring to loop through the ListBox to check each name in the ListBox, so ifthe name chosen by the ComboBox exists in the ListBox then donot add it,
but both codes do check the number of the item in the ListBox.

I need to check the name of the item?

With ListBox1
For i = 1 To ListBox1.Value
If i = ComboBox1.Value Then MsgBox "u cannot add this item"
Exit Sub
Next i

For i = LBound(ListBox1.List) To UBound(ListBox1.List)
If i = ComboBox1.Value Then MsgBox " u cannot add this item"
Exit Sub
Next i

.AddItem tot.Value
.List(.ListCount - 1, 1) = ComboBox1.Value
End With

View 9 Replies View Related

Display Msgbox When Item Selected From Combo Box

Dec 8, 2007

Im using code from website:

to display a combobox when I double click any cell that contains a validation list in it. I'm not great with VBA so I am having problems finding what each part of the code does. This is causing problems for another bit of code that I use to display a msgbox when certain values are selected from the list.

The MsgBox shows up great when I select an item from the validation list but does not work at all when I select the same item from the double-clicked combo box. It would be great if I could get the MsgBox to work both ways. This is the code that displays the MsgBox when target value is selected from list

Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.AddressLocal(False, False)
Case Is = "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12"
If Target.Value = "H" Then
MsgBox "This is a pop for extra information. Savvy?", vbYesNo, "Yo!"
End If
End Select
End Sub...............

View 4 Replies View Related

Drop Down Or Combo Box Instead Of Input Box

Jan 25, 2010

I currently have the following user inputbox that asks the user to enter the company name, of which it then copies the entered name to Cell E1 on the active sheet

Dim strName As String
strName = InputBox(Prompt:="You name please.", _
Title:="COMPANY NAME", Default:="Enter Company Name")
Range("E1") = strName

However, I would prefer it if there was a drop down list to select one of five pre-set company names without having the user to type the name out every time.

View 4 Replies View Related

Combo Box Dynamic Input Range

Aug 16, 2009

Is there a way of setting the input range on a combo box to a vale set in a cell?

ie, if my current input range is A2:A40 and i then users add another 20 records to that column, i need the combo box input range to change to A2:A60, so I can leave the sheet unmonitored for the users to add lines and not have to manually change the input range of the combo box.

View 9 Replies View Related

Combo Box Dynamic Unique List For Input Range

Sep 30, 2012

I am preparing a template for which I need a combo box. Becaue it is a template I can't have this combo box any specific input range. Because I won't know how long the data column (that wiill be used for input range) will be.

Also the data column will have many duplicates but the combo box needs to show uniques only.

View 1 Replies View Related

How To Set Worksheet To Auto Input Number When Item Selected From Dropdown List

Dec 6, 2012

I have a drop down box on a worksheet and once I have selected the item I want from the list, I would like the price of that item to appear in the cell next to it..

View 2 Replies View Related

Remove "TRUE" & "FALSE" Words From A Linked Checkbox

Nov 15, 2008

On the sheets where 'present' needs to be checked, after linking the checkbox to the cell it now says "TRUE" or "FALSE". How do I get rid of that? There is a formula that this affects also (just FYI).

View 3 Replies View Related

To Make A Combo Box In Excel That, If I Select It The Sheet Inside The Combo Box Will Appear

Sep 19, 2009

I want to make a combo box in excel that, if i select it the sheet inside the combo box will appear.


Inside of combox are: Sheet1

If i click combo box and i choose sheet3 the sheet3 will appear.

How can i do this? theirs a macro code to use?

View 9 Replies View Related

Values Of Combo Box Dependent On Selection In Another Combo Box

Oct 9, 2008

The first combo box is on a userform so that a subject can be selected

View 3 Replies View Related

Linked Data In Workbooks

Feb 3, 2010

I'm still using Excel 97. I know I'm a dinosaur but I find it does what I want, just like a Ford Model T would.

I have one workbook (workbook "A") which links to another workbook (workbook "B") when "A" opens.

If I now update and save "B" I find I need to close "A" and re-open it to get the updated data from "B".

Is there anything which might be called "update field"

View 9 Replies View Related

Click Item In ListBox1 And ListBox2 Item Is Also Selected Simultaneously?

Feb 16, 2013

Excel Userform

'enables user to click [U]highlight and select[/U] an item in ListBox1 and ListBox2 item (same row in index) is also [U]highlighted[/U] (highlighted only not selected)
Private Sub ListBox1_Click()
ListBox2.ListIndex = ListBox1.ListIndex
End Sub

Question: Is it also possible to enable a user to click to select an item in ListBox1 and ListBox2 item is also selected simultaneously (same row in index). Is there excel vb code to do this?

I think the code may be along the lines of the ListBox SelectedIndex property. What would be the Excel VB code equivilant for the ListBox SelectedIndex property, if so?

View 8 Replies View Related

Vba Code Recording Dde Linked Data

Jul 13, 2005

In A2 is the Stock price, and B2 the time of the update.Now every time it updates A2 and B2 get overwritten.I need some code that will save/ record the the stock price on the hour, every hour. I then need the highest and the lowest price within that hour, and lastly the price at the very end of that hour. (example)


I received what I think may work, but I dont know how to write this in VBA. If the time of the new value received > than B2 + 1 second, create new row where Open=High=Low=Close else if (last column=new value,if new value>high column then high column=new value,if new value<low coulmn then low column=new value.)

View 9 Replies View Related

Button Linked To Source Data

Apr 21, 2007

I have 3 worksheets, one worksheet is a summary worksheet that gives totals for what the user chooses... like Actual vs Budget or Actual vs Prior... etc. When we are in our meetings a common question is where did these numbers come from?

I would like to create a macro button that when you are on a cell you can click the button and the macro well take you to the destination cell. Is there a way you can write a formula in to the macro that would use the formula in the current cell and take you to where that number comes from?

View 9 Replies View Related

Code Linked To Data From Another File

May 3, 2007

I need to link my code to data from a different Excel file. I feel it is smth simple, i just have never done this before. In a regular (=same file) setting, my code would be smth like that:

With Worksheets("Daily1")
j = 1
Do Until IsEmpty Range("A6").Offset(j - 1, 0).Value)
j = j + 1
m = j
End With

What would be the syntax if data instead comes from, say, Z:Brazildata.xls. In general, when I retrieve data from another file, do I always have to use "With - End With" structure?

View 4 Replies View Related

Replace All The Times That These Words Appear In The Rest Of The Sheet With The Words In Column B

Sep 20, 2006

I have a column of words in Column A and I want to replace all the times that these words appear in the rest of the excel sheet with the words in Column B. If someone has already answered a similar problem link me to the thread because I can't find anything.

View 5 Replies View Related

Converting Linked Workbook Data To Text?

Jul 9, 2014

I have linked two workbooks together but now need to be able to convert that linked data to straight text. I have a v-lookup in the report that needs this to be this way. I do not want to use paste special values because that would defeat the purpose of linking the two pages.

View 1 Replies View Related

How To Keep Rows Of Data Together When Dynamically Linked To 2 Columns

Apr 30, 2014

I am trying to set up a new assurance work book and worksheet (worksheet2 lets say) which will dynamically link to another workbook and worksheet (worksheet 1) owned by another part of my business. The purpose using the data set in worksheet 1 is that this is the source data and is the most accurate for the project information. So I am looking up columns A, B and C in that workbook in my new worksheet2 using ='[Spreadheet 1.xlsx]Sheet1'!$A$1:$A$1174 the same for column B and C, with the aim that any new data entries within columns A, B and C will be populated in worksheet2.

In columns D to Z of worksheet 2 (my worksheet) I am applying some assurance metrics to the project information that is specific each row of column A, B and C which are dynamically linked to woorksheet1. My problem and it is completely eluding me is this....

The owners of worksheet1 regularly sort the data into chronological order based on Column A. However the data is not normally presented in this way i.e. all new entries regardless of date are added to the list at the bottom of worksheet1. The problem I have is, is keeping my row data in Columns D-Z linked to the row data in columns A-C of worksheet2 no matter what kind of sorting occurs to Columns A-C in worksheet1.

View 1 Replies View Related

Searching Data In Google To See If Linked To Website?

Jul 22, 2014

I'm trying to see if there is a way to speed up the process of doing multiple Google searches to see if I can find a website attached to a text. I have a list of websites, and am trying to update the list to remove dead/inactive sites, and also find the URLs for the live sites.

The list looks like this (sample):
Comstock, Inc.
Contacto Latino
Core States
Crains Chicago
Crains Chicago Business
Crains Detroit
Crains Detroit Business
Crowell Weedon

Thus there's no website attached, and I need to manually find the URL myself. There are over a thousand cells in the list.

How to speed up the process of finding a url for these websites?

View 1 Replies View Related

Automatically Hide Rows That Contain No Linked Data?

Mar 16, 2014

I have two linked workbooks, one containing a large data table, and the other containing individual worksheets that extract the data from the large table via HLOOKUP equations in each cell.

Is there a way to have Excel hide the row of a worksheet if the resulting HLOOKUP result in the cell in that row is empty? Also, if there is data in the cell, can I get Excel to automatically adjust the row height based in the incoming data and not on the HLOOKUP equation?

View 1 Replies View Related

Dynamic Named Ranges With Linked Data

Feb 4, 2010

I am using OFFSET to make dynamic named ranges- the only problem is that I'm having trouble using it with linked data-

The Situation:

-Cells A1:H500 are linked to another sheet, with each cell containing a formula like =IF(ISBLANK('C:...[workbook.xlsx]worksheet'!A1),"",'C:...[workbook.xlsx]worksheet'!A1)

-Currently only cells A1:H100 have data, but this is dynamic and will change

-I want a named range that will only select the cells with data in them...the problem is that COUNTA counts the link formula even if the cell is "blank" (because it isn't blank).

-I hate hard-coding ranges...the solution for the named range =OFFSET($A$1,0,0,500-countblank($A$1:$A$500),8) is ugly!

Any solution to making dynamic named ranges with linked data that may or may not be "" ?

View 1 Replies View Related

Get User To Choose Location Of Linked Data

Sep 18, 2006

I've have a spreadsheet where 4 cells are linked to another workbook via a vlookup.
the problem i have is that a lot of users can update this external book, or it can be saved as a seperate spreadsheet somewhere else on the network. If it was up2 me i would have them only update the one sheet, but as it stands its not. So what i want to be able to do is put some code onto a button on the sheet, from here i want the: Application. GetOpenFileName

method to open....but from here i want them to be able to pick the cells where the data is situated. Any clues..... i can get as far as them selecting a workbook. Do you think i will need to create another userform?? Maybe RefEdit? I'm not sure.

View 3 Replies View Related

Macro To Only Keep 100 Words In Range Of Single Words Per Column?

Jun 3, 2014

I'm looking for a macro to remove all words (in a single word per cell format) in a range (approx 100 columns & 7000 rows), except for a list of 100 words.

I'd prefer to email the file if that's okay.

View 7 Replies View Related

Auto-calculate 2 Column That Contains Numbers And Words Words

Jul 16, 2009

I've been using conventional method to do this and it's time consuming. I would like to total up 2 column. A multiply B to be exact. Below are some examples:

Table 1 - Before totaling up:

2 x Button A White
4 x Button B Pink
5 x Ribbon A Black
3 x Thread A White
2 x Cloth A Blue

Table 2 - After totaling up:

Button A White
Button B Pink
Ribbon A Black
Thread A White
Cloth A Blue

I need to have the sum of the "Quantity" multiply "Product". Or in short A x B.
And the end result need to have the number and "x" sign removed while keeping on the the products names. (2 x ) Take note it's "number" space "symbol" space.

View 9 Replies View Related

Flag Item When Doesn't Match Item Above

May 20, 2014


I need some way that can identify when the item in the description column doesnt match the first item of the same number- for example, here the 1-blue and 3-orange would be flagged because they should match the 1-yellow and 3-green.

I need to do this on a much larger scale (approximately 20,000 data points), so I wanted to create a formula or macro that could do this for me.. I thought making a reference page with would work but I keep getting an error.. I haven't done VBA in a while, so I may have syntax errors.

If Range("A2:A9").Sheets("Sheet1") = Range("A2:A6").Sheets("Ref") And Range("B2:B9").Sheets("Sheet1") = Range("B2:B6").Sheets("Ref") Then
Range("C2:C9").Sheets("Sheet1") = "x"
End If

View 2 Replies View Related

Copyrights 2005-15, All rights reserved