Pop Up A Userform To Ask User To Key In Data Based On The Keyword

Nov 21, 2008

i am attach an sample excel file here.

1st sheet "sample",
first, the marco look for column c "F No."
if it search the content start with "F" and follow by 8 digit numberic,

2nd sheet "pop up",
then pop up userform to ask user to key in the textbox there. if it search for as many as "F" with 8 digit numberic, it will show at the userform and ask user to key in the data in the textbox there..

3rd sheet "key in",
user can key in any data they want

4th sheet "output",
after the user click the "OK" button
all the data put in the textbox there can automatic go to the column "a"
can refer by the sheet output..

View 2 Replies


ADVERTISEMENT

Rows Of Data Based On Keyword

Sep 30, 2008

Attached is a spreadsheet describing my problem in greater detail, but essentially i want to extract rows of data depending on quoter name. I'm fairly competent with excel formulae, but cannot get the desired results. I know nothing of VBA other than copying and pasting other's VBA projects in and fiddling with them until something good happens!!
I wish to extract the data and deposit into another worksheet or better still another workbook entirely but without any breaks in the rows of data.

Havent had much luck with advanced filter either.

View 14 Replies View Related

Find Keyword In String And Replace That Cell With Keyword Found

Mar 9, 2014

I'm looking to identify a keyword in a string and then replace that string with just the keyword.

The string is a product description. The keyword is a product group. The keyword can showup in any position in the string.

I can't post the actual data do to confidentiality requirements. but here's an example.

description
qty
price

keywords
code

green grapes bunch
1
2.5

[Code] .......

View 2 Replies View Related

Format Row Based On Keyword

Aug 31, 2007

I have 4 macros which inserts a row in workbook (at specific interval of time). These macros run in a endless loop. The problem arises if any other workbook is open and active at the same time. The macro tries to update this active workbook.
Can I ensure that macro runs for only specific workbook (whether the workbook is active or not)

Option Explicit
Public RunWhen As Double
Public RunWhat As String
Dim wCount
Sub Macro3()
'Initialize counter
wCount = 100
Call Macro4
End Sub
Sub Macro4()
If wCount > 0 Then
' If counter greater than zero then update excel with counter and
' call macro to decrease the counter
Cells(1, 2).Value = wCount
RunWhat = "Macro5"...................

View 2 Replies View Related

Add Page Break Based On Keyword

Dec 16, 2007

I am using the following code to insert pagebreaks based on changes in column D. I would like to change it so that page breaks are inserted after the appearance of the word " Total" in column D. Note that the word total will typically be preceeded by other words. Example "Sales Total" or "G. Smith Total". If possible, I would like to suppress this logic when the words "Grand Total" appear as I would end up with a grand total page with nothing else on it.

Sub set_page_breaks()
Dim NumRows As Long
Dim iRow As Long
Dim FirstRow As Long
Dim LastRow As Long
ActiveWindow.View = xlPageBreakPreview
ActiveWindow.Zoom = 85
NumRows = Range("A65536").End(xlUp).Row 'get the row count
ActiveSheet.ResetAllPageBreaks
With ActiveSheet
FirstRow = 2
LastRow = NumRows
For iRow = FirstRow To LastRow
'SET BREAK ON CHANGE IN COLUMN "D"
If ActiveSheet.Cells(iRow, "D").Value _.........................

View 2 Replies View Related

Search For Workbook In Specific Directory, Based On Keyword

Nov 10, 2009

I am trying to find code that locates a workbook (file) in a specific directory, based on a keyword and stores the workbook location in a string to be opened later.

For example, find a workbook containing the word "ancaster" in it's file name (actual file name is "ancaster_summary_2009") in file path:

"C:My Documents" and store the filename and path in a string called "ancasterBook"

View 4 Replies View Related

Force Focus Back: Pop Up A Userform To Provide Instructions And Collect Some Additional Data From The User

Feb 18, 2009

I'm working on a spreadhseet which has several macros that can take up to 5 minutes to run. When the macro(s) complete, I pop up a userform to provide instructions and collect some additional data from the user.

The "problem" is that when the user moves to another application to do other work, the user form remains hidden behind the active app. I've added some text to the status bar to let the users know the processing is done, but they would like something more obvious - so, is there any way I can force focus back to Excel?

View 2 Replies View Related

Saving User Based Data?

Jan 1, 2014

I am working on a project in which I used a formula and created a kind of a software.what I need to do is that after my user enters certain data it is sent to a worksheet(as directed).now I want that data to remain saved there even when I am changing the inputs in the formula. what is happening is that my previous data is getting erased when I enter new variables to the formula .

View 1 Replies View Related

Archive Data Based On User's Input

Jun 14, 2006

I am trying to move (archive) data from one sheet to another sheet based on a date range provided by the user’s input. If the date on sheet “list” in the cells in range R9:R10000 fall within that date range the following takes place. The rows that meet the date range per the user’s input in the range of R9:R1000 are copied and just the values are pasted into the next empty row starting with row 7 on the “report” worksheet. The cells that are copied on the “List” worksheet are NOT deleted but the contents are cleared. The reason for this is because there are formulas/links in those cells.

I have attached a worksheet example and have some VBA code but it does not work.

View 9 Replies View Related

Need To Pull All Data From Database That Match Given Keyword

Mar 25, 2014

I am faced with a challenge of identifying all the probable duplicate issue of Id cards for a list of some 50000 students.

There is a list of student names in Column A with associated fields in subsequent columns.

I would like to use either first name or last name as keyword and pull all the data(all the columns) that either partially or fully match the keyword in second sheet.

I have attached a sample workbook for this : STUDENT MASTER.xlsx‎

I have tried vlookup but it pulls only one data set.

View 2 Replies View Related

Exclude Items In Dropdown Based On User Data

Jul 10, 2013

I'm trying to set up a diet/training spreadsheet so that when a client enters foods and exercises they don't want/can't do, those foods and exercises are made unavailable in dropdown menus (on my programming sheet) so that I can't inadvertently put them into their plans. I have a webform they fill out, which automatically puts the data into a spreadsheet and I know how to pull data from there into the clients' workbooks...

View 2 Replies View Related

Auto-Fill Data Based On User Input

Dec 22, 2009

Excel 2003, I have a list of products with corresponding prices located on a hidden worksheet. I have a spot on another worksheet where users can select a certain product and next to that cell there is a column for price. What I want excel to do is auto-populate the price cell based on what product the user selects. For instance, if the user selects OD2000N, then I want the price to auto-populate with the corresponding price that is found on the hidden sheet. Like I said before, I know this has probably been answered, maybe even mulitple times but I can't seem to find the appropriate thread.

View 9 Replies View Related

Copy Paste Specific Row Of Data Based On User Input?

Apr 14, 2014

I need to copy and paste the specific dates from the specific city that the user will insert in the "dash" sheet.
Basically, I need the macro to read the city and range of dates that the user will type into the "dash" sheet and copy the columns "AA" to "AD" from rows specified by the dates input. Once it has been copied, it has to be special pasted just the value onto the sheet "1" beginning at location B2.

the the data will not be available as it is vlookups to another excel sheet that i have not provided. I have deleted the data, but you can pretty much put 1's everywhere.

View 11 Replies View Related

Excel 2007 :: Data Validation Based On User Input?

May 24, 2012

In the spreadsheet shown below I would like the user to select a project via a dropdown list in cell B2 which is from the data set shown in row 7 downwards. Then based on the project they select, they need to be able to see all of the locations associated with that project and choose in B3. Finally they then need to be able to select a team which is associated with the project & location combination chosen in cells B2 and B3.

Excel 2007
ABC2
Project3Location4Team56ProjectLocationTeam7Project 1PerthTeam 18Project 1MelbourneTeam 29
Project 1SydneyTeam 110Project 1Brisbane Team 111Project 1Brisbane Team 312Project 1DarwinTeam 413
Project 1DarwinTeam 514Project 2PerthTeam 315Project 2PerthTeam 416Project 2MelbourneTeam 117
Project 2MelbourneTeam 218Project 2SydneyTeam 419Project 2Brisbane Team 6

View 9 Replies View Related

Enter Fixed Data Pattern Based On User Input

Jun 21, 2012

I've been going round in circles with this for hours and have got no-where. I 'm trying to get Excel to paste in a set pattern of data based on an input cell.

In row 1 I have months starting in cell B1. B1 = April 12, C1 = May 12, D1 = June 12, and so on

The user would enter the data in column A, starting in row 2

If the date in A2 = May 12 then Excel would enter 10 in cell C2, 20 in cell D2 and 30 in cell E2. If the date in A2 is changed to June 12, then the previous data would be cleared and Excel would enter 10 in E2, 20 in F2 and 30 in G2.

Date would be entered in A3, A4, A5 etc and I would want it to post the same fixed data depending on the date the user enters in teh relevant row.

I've tried IF statements and also some code but can't even get near it working.

View 9 Replies View Related

Copy Data Based On Date Range Put In By User For Report

May 16, 2006

I have looked through the forum and found pits and peices but can not put the puzzle together. Found the VBA code in my example from a earlier post but there was no final answer to the post.

Trying to have the user put in a date range via command button. Fro mthis date range the data thats falls within that range is copied to a report sheet. Will also need to have all the old data from a earlier querry removed. Have attached example sheet.

View 9 Replies View Related

Produce List Of Row Data Based On User Selected Cell Criteria?

Apr 7, 2014

I have a workbook that has three worksheets. The ASU Database sheet contains part numbers and descriptions including specific details that are selected from pull down data validation lists that are named on the third worksheet. I want to have a front end on the first worksheet that has similar data validation lists for the user to select from to create a search criteria that will create a worksheet with only the rows that meet this criteria. I am not sure what method to use to accomplish this.

View 2 Replies View Related

Index - Match Function To Output Data Based On User Input

Apr 30, 2009

I have a list of data that I'm using the index - match function to output data based on user input.

For example, I have:

1 10
2 15
3 20

So when '1' is selected another cell outputs '10'.

However what I want is for example if 1.25 is input, I want it to interpolate to spit out the correct number between 10 and 15.

View 5 Replies View Related

Data Validation - Control What User Enters Into Single Cell Based On Others

Nov 29, 2013

I want to control what a user enters into a single cell based on others.E.g.

A B
1 20 500
2 50 500
3 75 500
4 100 300

Column A is a thickness and column b is a width what I want to happen if the user enters a thickness in cell D1 and a width in cell D2 I want an error to pop up if for instance the user enters 100 as a thickness to only allow a maximum of 300 in the width. likewise if the user enters a thickness less than 100 in cell D1 to allow him to enter up to 500.

View 4 Replies View Related

Pull Data From Sheet Based On Criteria - Populate UserForm And Ask For Missing Data

Feb 8, 2014

I have a spreadsheet that is updated weekly -- but every week new info is added that needs a user to input corresponding info. I use a vlookup function to link to another spreadsheet that populates the info from previous weeks and the info that is missing shows up as #N/A...

First I was using a msgbox function to get the info:

HTML Code: 

For Each b In myrange
If Application.IsNA(b.Value) Then
Employee = b.Offset(0, -2).Value
SSID = InputBox("Please enter ID# for " & Employee & " :", "New Employee Found")
b.Value = SSID
End If
Next b

But it can be up to 30 different new employees... and that is time consuming.

I would like to make it more user friendly by creating ONE userform that displays all of the employees as labels -- has a text box in which to put the ID # -- and then has a drop down box to choose the type of employee (2 options). I want all of that info to go back to the reference spreadsheet so it will be saved for following weeks, and then redo the vlookup to get the info into the new weekly spreadsheet (I can do that part)....

HTML Code: 

Private Sub CloseButton_Click()
Unload UserForm1
End Sub

Private Sub ComboBox1_Change()

[Code] ......

View 2 Replies View Related

Copy Data Based On Date Entered By User For Report Across Multiple Sheets

Jun 20, 2006

What i want to do is copy all records from whatever date i enter, onto sheet test. The full excel file has over 80 worksheets for each individual rep, the example i attached has 8 sheets..

View 9 Replies View Related

Showing Data On Userform Based On Last Data Input?

Mar 26, 2014

Creating a working userform that takes data input from the user and puts it onto a spread sheet.

That data is then used to calculate a result (via the spreadsheet), and I want that result to show on the userform when the data is submitted (if that makes sense?)

View 1 Replies View Related

Prevent The User From Saving The Data Input From The User Form If Any Of Those Three Fields Is Left Blank

Feb 9, 2010

I have a user form that has a combo box "City" two text boxes one called "Flight" and the other "Date". What I'm trying to do is to prevent the user from saving the data input from the user form if any of those three fields is left blank. The code that I have so far checks all of the required fields, if any are left blank a message notifys which field(s) is left blank and return the focus back to that field. But the rest of code also fires.

What I really need is either to stop the code if any fields are blank and return the focus back to the blank field, the user completes the field(s) and clicks the save again, or better yet, pause the code until all the required fields are completed and then complete the save. (There is actually another 200+ lines of code in this sub, but I deleted it to keep the post a little shorter.)

View 2 Replies View Related

Userform - Conditional Transfer Of Data Based On Combobox Value?

Mar 17, 2014

I have created a userform and it works fine.Following code is assigned to commandbutton to transfer data to sheet "FT".

[Code].....

I want to add that : If value in combobox2 is “ KT” then all entries are copied to sheet3

Otherwise copy everything in sheet”FT”

Other parameters remain same.

View 4 Replies View Related

Filtering Data From One Worksheet To Another Based On Selection In Combobox On Userform

Feb 14, 2013

I am using the combo box that lists the loan officers number from the selection the loan officers name and branch is loaded. I want to be able also base on the officer selected add get the total new loans opened by that officer. I added an if statement that checks if the loan officers number from the "Oct_2012" is equal to the loan officers' selection from the combo box then add all the loans than match that criteria. I am not sure if what I am doing will work but when it reach to the For block it only reads the For statement and then go to the endif and don't execute the statement within the block.

Code:
Sub cmbLnOffNum_Change()
Dim idx As Long
Dim LnOffRow As Long

[Code]....

View 1 Replies View Related

Returning Values Based Upon Data Point Entered In VBA Userform

Jan 20, 2014

Basically, I have a Userform and am trying to have a user enter 1 datapoint into a Textbox. Based upon that datapoint (it's 9 digits), I am trying to see if I can therefore reference a linked Access Table to fill in other textboxes with information tied to that record (so if they enter a unqiue ID, I want to automatically return Name of Person, Location, etc.) . I liken it to a vlookup in regular Excel but am just not sure how to go about it in VBA.

View 2 Replies View Related

Portable Userform – For End User

Feb 6, 2007

I have been working on a custom copy routine. I was not able to make it work exactly how I wanted it to but with help from here (Custom Copy From One Workbook To Another) I do have something that will work. The final solution uses a UserForm that I have exported to a *.frm file.

Is there any way I can make the process of importing the UserForm and assigning a macro to run it, easy for the end user?

View 5 Replies View Related

Userform Listbox That Lists Data Based On Radio Button Selections

Mar 14, 2009

I have a worksheet (attached) that lists various clients in columan C. Column E lists whether each of the clients listed in Column C are 'Existing Business' or 'New Business'. I require a user form that has three radio buttons (one to select 'New Business', another for 'Existing Business' & one for 'All').

When Selecting a radio button, (e.g. 'Existing Business'), I need all clients listed in Column C of the worksheet that also have 'Existing Business' in Column E to be listed in a ListBox on the UserForm (with the second radio button allowing the text box to list 'New Business' and the third to list both Existing and New).

View 3 Replies View Related

Allow User To Add & Move UserForm Controls

Oct 18, 2007

I need to simulate UserControl Design-time Drag at Runtime-time. Pratically, the user must be able to drag a Usercontrol in a wished position like programmer in VBE IDE.

View 2 Replies View Related

Prevent Duplicate Data Entry Via Userform Based On Exact Match In 2 Columns

Jul 16, 2012

I have a userform with several textboxes and 2 comboboxes. The data that I need protected from duplication is based in the comboboxes. If I ignore the other fields and presume the following it may be easier to understand:

The comboboxes are populated by the data stored in sheet1 and when the userform is complete, the OK button populates all the data into sheet2

Combobox1 contains names eg, John, Julie, Bob etc
Combobox2 contains colours eg, Red, Blue, Green etc

I want the userform to allow the data to be entered into sheet2 only if it is not an exact duplicate of the choices in BOTH of the comboboxes

For Example
John Red
Julie Red
Bob Blue
John Blue

These are all ok, however, to try and enter John Red again would bring up a message box indicating a duplicate entry and prevent the data from being entered.

View 2 Replies View Related







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