Propagating Text Boxes Dependant On Cell Relationship

Oct 8, 2006

I have been working for three straight days (and nights!) to accomplish something that is very simple in other languages, but I can't make it work in VB

Column X has, with spaces between 4 possible contents:
3Q
FM
1Q
NM

St1 St3
3Q today
tomorrow
-2
-3
-4
-5
yesterday
FM today
tomorrow
-2
-3
-4
-5
-6
yesterday
1Q today
tomorrrow
-2
-3
-4
-5
yesterday
NM today
tomorrrow
-2
-3
-4
-5
yesterday
3Q today
tomorrow
-2

and so on for 1500 rows.

I can write this in Lotus in about 2 minutes, but VB has me stumped. I hope someone can put me on the corrrect path.

View 8 Replies


ADVERTISEMENT

Paste 1st & 2nd Columns With Dependant List Boxes

May 4, 2009

I would to say thank you to RoyUK for helping me out with this DependantlistBoxes where a Userform has two columns. Now I've manupilated a Userform so that whenever I double click on the cell, the selected text from the second box in Userform is pasted to the cell in the next column to the right.

But I what I really want it to do is to past the text fromt the first box in Userform to the active cell and when move to the second box in Userform, the selected text will be paste to the cell on the right.

Like I double click on B3 (in "Fullarton") sheet, a userform appear. When I choose CB from the first box in userform, it should paste in B3. Then when I choose Electrician from second box in userform, Electrician should be paste in C3.

View 2 Replies View Related

Dependant Data Validation From Multiple Dropdown Boxes

May 3, 2007

I am trying to make a drop down list and based on what I select from the drop down needs to populate a different drop down list with information based on what I select.

For example: if I have Sheet1, Sheet2, Sheet3 and Sheet4.
Inside of Sheet4 (My Main Sheet) I have a Data Validation (Drop Down list) in Cell A5 and Cell B5

I would like to choose Sheet1 from Cell A5 and in that same sheet (Sheet4) in Cell B5 I want to have a drop down with a list of names that are located in Sheet1 in Column A:A.
Or If I would've picked Sheet2 in Cell A5 of (Sheet4), I would like to see a drop down with a list of names in Cell B5 (Sheet4) that are on Sheet2 in Column A:A . Is this possible?

So far I could achive it if information I want is located on the same Sheet. But I need it to work if info is located on different Sheets

View 9 Replies View Related

Make Text Dependant On Cell - Bold

Feb 18, 2010

i have some code where i need to make the text bold but not sure how to go about it
the formula is

View 3 Replies View Related

Change Cell Colour Dependant On Text

Jul 20, 2006

how hard would it be to chane the background colour of a cell when a certain word is entered into it? so someone would type 'james' and press enter then the cell would turn red....would only be in a set cell range..

View 9 Replies View Related

Automatically Shade Cell Dependant Upon Text In Aother Cell

Jul 13, 2009

Im writing a spreadsheet that will act as a hotel room booking diary. There will be 52 sheets (representing each week of the year) and each sheet will therefore represent one week

Each sheet will look at operate the same. Running horizontally will be the days of the week and running vertically will be each of the bedrooms. There are 22 bedrooms in total and each room will have 12 cells allotted to it for each day - lets call this a 'block' and presume that the first block runs from C10 to c21. The final of these cells C21 will have a validation and the user can select 'PAID' 'TO PAY' or 'INVOICED'

If the user selects 'PAID' in C21 I want cells C10 through to C21 to shade GREEN
If the user selects 'TO PAY' in C21 I want cells C10 through to C21 to shade RED
If the user selects 'INVOICE' in C21 I want cells C10 through to C21 to shade YELLOW

View 3 Replies View Related

Set Relationship - Aligning Equal Text

Nov 15, 2008

I want to bring in text files that result in a single column and then want to be able to align equal text in the column next to each other. I used to be able to do some moderate programming in FoxPro and used a transaction that was called set relationship to field+field, etc.

If there is no equal text in either of the other columns then I have tried to set it to a column by itself. Of course this comes data comes in all in one column with no spaces. I have searched the help files and the net and just can't find a way to do this. I'm thinking this might be attuned to Access more than Excel but I am not proficient in this. Right now I am doing a cut and paste to make this work but some of the imported text have upwards of 800 lines.

View 4 Replies View Related

Propagating Into Another Column

May 13, 2009

I have a whole bunch of data in Column "A" but I want to find everything that starts with BB and copy it down in Column "B" until A hits another BB and then it starts copying that new value down. Example:

View 2 Replies View Related

VBA Hide Text Boxes Based On Cell Value?

Oct 1, 2012

I have the code below on a worksheet to modify a form based if it's a Purchase order or not. It works but it seems like it could be much shorter. I tried several different ways to write it but I can't get it to work any other way.

Code:

Private Sub Worksheet_Change(ByVal Target As Range)
' If cell E5 = "Purchase Order" remove sales tax % from E33 and Hide Text Boxes 1 and 8
If Target.Address = Range("E5").Address Then
If Target = "Purchase Order" Then
Range("E33").Value = 0
With ActiveSheet.Shapes("Text Box 1")
If ActiveSheet.Range("E5") = "Purchase Order" Then
.Visible = False

[code].....

View 3 Replies View Related

How Do I Fill In A Cell Based On The Relationship Of The Number Within A Range Of Numbers

Feb 6, 2009

This is a spreadsheet for a real estate office. The boss gave me a spreadsheet that he created to give a seller an idea how much money he will walk away with at closing. The spreadsheet includes all of the pertinate numbers but there is one item that he would like to have filled in automatically. When selling a house, you use a title service that charges a fee based on the price of the house. So, for example, If the house sells for $0 to $50,000, then let's say the fee is $112. If the house sells for $50,000 to $60,000, then the fee is $118. If the house sells for $60,000 to $70,000, then the fee is $125, and so on up to 1.5 million.

The boss' spreadsheet includes 5 different selling price scenarios, which I guess doesn't matter since you do the first one and the rest follow the same pattern.

So how do I automatically fill in a cell based on how one number falls within a range of other numbers? The fee schedule will be within the same spreadsheet, if that matters.

Ideally, I think they should be separate files, but this will be used in various locations as different realtors take it home or use it on their laptops.

View 9 Replies View Related

Dependant Lists Using Text Values Not Listed In Worksheet

May 28, 2009

I have seen in the forums where lists are created by refering to column values in other worksheets.If you create a list by entering text values can you make other lists dependant to those values and can those lists also be made up of text lists?

All the examples I have seen here use lists that exist in some other worksheet

I use lists which use text values directly and not from a worksheet. I'm wondering how to make a secondary/sub list dependant on each value selected so say if text value "A" is selected in list 1 then this only allows the list for "A" to be available for list 2 in its corresponding cell (the next one along)

View 9 Replies View Related

Inputting Dependant On Cell

Oct 12, 2008

on sheet1 which is called working sheet and cell d25 is asking what type of goods been sold

i have several different sorts"

ie
s25
s28
s50
s69
s70
s82
abd
t70
t140

i want the spreadsheet to look up somewhere on a sheet called delivery all the components that could be used for that type

so i guess i need to name define?

ie if s25 is selected

on delivery sheet in a20 it would then list all the components underneath each other.

View 14 Replies View Related

IF Formula That References A Cell And Returns A Different Result Dependant On The Number In The Cell Being Referenced

Oct 2, 2009

I'm trying to do a formula that references a cell and returns a different result dependant on the number in the cell being referenced.

For example I've said if A1 has a 3 in it then put the word TEST as the result, plus if it has a 4 put the word RESULT.

What I wrote as my formula is as follows-

=IF(A1=3,"TEST")+IF(A1=4,"RESULT")

It works fine when I only use one result but goes wrong when I add two. If I change the words I want to show to numbers it comes up fine but with words it just returns a Value error.

View 2 Replies View Related

Find A Text Or Number In Text Boxes

Oct 15, 2008

I have a couple of excelfiles in which someone made a flowchart with text boxes. I would like a search code that would help me find a text or number in those text boxes. The CTRL+F function only works on cells. Does something similar exist for text boxes? Or can this be made in a macro?

View 9 Replies View Related

Replace Text In Mutiple Text Boxes

Sep 12, 2007

Trying to Find a specific word and Replace with another within a textbox ( created from the drawing tool, as well as the control toolbar) The textboxes contain loads of text information.

as an example
The word "Apple" to be replaced with "Orange"

I came across this code from the archives (compliments of Dave Hawley)

Sub ReplaceTextBoxText()
Dim sTextBox As Shape
Dim wSheet As Worksheet
Set wSheet = Sheets.Add()
For Each sTextBox In Sheet1.Shapes

I've tried several variations with no results. (perhaps it's to extensive for my modest needs)

View 9 Replies View Related

Formula For Obtaining Value A Dependant On Cell X

Jan 16, 2010

so basically, im trying to find a way to get cell G3 to have Value X dependant on value from Cell G2. e.g. if cell g2 is 8 and 9, g3=10 if g2 is 11, g3=20 and so on. i dont mind having to add a preset table of values if we need, but it would be set on sheet 2.

EDIT
Value from cell G2 will always be between 4 and 20, set by the user. what i want is that each of those values gives G3 a pre-planned value.
if g2 has value 4. g3 value would be -5
if g2 has value 5. g3 value would be 0
if g2 has value 6. g3 value would be 5
if g2 has value 7. g3 value would be 5
if g2 has value 8. g3 value would be 10
if g2 has value 9. g3 value would be 10
if g2 has value 10. g3 value would be 15
if g2 has value 11. g3 value would be 20
if g2 has value 12. g3 value would be 20
if g2 has value 13. g3 value would be 25
and so on until it reaches g2=20

i was thinking of setting a table on sheet 2 for the g3 values, and get an IF function to do something like IF g2 = a then x, if g2 = b then y etc etc. im just not sure how it would work, unless an INDEX function would work better?

View 4 Replies View Related

Copy Picture Dependant On Cell

Jan 9, 2007

I am trying to make an Excel sheet with a frontpage sheet and a data sheet. In the data sheet I have several columns with data and then in the end a cloumn with pictures. On the front page sheet I can easily with VLOOKUP formulas transfer the desired data from the data sheet to the front page sheet but I cannot seem to figure out how to copy the picture. When I try to copy the cell with the picture in it, the formula only copies the cell value, which is "0" because the only thing which is in the cell is the picture. how to copy a given picture from one sheet to another based on the information in another cell like a "Vlookup" formula?

View 3 Replies View Related

Cell Format Dependant On Rows

Mar 13, 2007

I have

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
With Target
Select Case .Value

Case "(None)": .Interior.ColorIndex = Null
Case "One": .Interior.ColorIndex = 38
Case "Two": .Interior.ColorIndex = 18
Case "Three": .Interior.ColorIndex = 35
Case Else: .Interior.ColorIndex = xlNone
End Select
End With
End If

End Sub

My problem is that columns A to H are yellow(36 I think) and are merged cells.
And Cells AW2 to BD2 are also yellow. The cells inbetween are white.

At the moment when the Cell value is "(None)" the cells turn white, I dont want this. I would like them to go to default.

View 9 Replies View Related

Image Dependant On Cell Content

Aug 31, 2007

i have a column with numbers in, in numerical order, however some cells are null. ie.
1
2

3


4
..
etc. I need to put paste images from a folder next to these numbers. (1.bmp next to '1' etc) and i need to leave the empty cells in. This code is sort of right..

Sub aids()
Dim strPath As String
Dim strFile As String
Dim lngRow As Long
Dim objPic As Object
Dim sngMaxWidth As Single
On Error Resume Next
lngRow = 2
strPath = "C:images"
strFile = Dir(strPath & "*.bmp")
With ActiveSheet
Do While strFile <> ""..........

View 7 Replies View Related

Color Row Dependant On Cell Entries

Jun 3, 2008

I have a spreadsheet where I would like the rows to change colour dependant on value input to certain cells, i.e. if a any value other than a zero put into a cell it changes to green, if a zero put into a cell it changes to grey, if a zero put in but a value put in another cell it changes to another colour, if values already in are taken out of other cells, it changes to yellow.

I've looked on FAQ and there are a lot of similar things but not quire wha I'm after and even thn I dont know how to use VBA etc to achieve.

View 9 Replies View Related

Save A File Dependant On Cell Reference

May 21, 2007

i have a order form that is customer dependant. the cust name on the form is manually entered by the user within a msg box. i have specific cusotmer folders on a shared machines C drive where i would like to save these excel docs to.

i understand that the cust name must match the name of the file and there needs to be a way to save those that do not have specific folder matching what was entered as the customer name.

the overall goal is to have the file name saved as CustomerNameDeliveryDateInvoiceNumber.xls where CustName is from cell "M3", delivery date is "Q7" and InvoiceNumber is "Q1".

Sub OrderFormSave()

Dim strCustFileName As String

savefile = "\SrSharedDocsCSPSharedFILESCustomerOrderForms & strCustFileName & "

ActiveWorkbook.SaveCopyAs savefile

End Sub

View 9 Replies View Related

VBA Restriction To Cell Input Dependant On Other Cells

Oct 2, 2007

I have a sheet where I want to not enable someone to enter data in a cell unless there is data entered in a range of other cells.

Range A1:A5 compulsory data to be entered
Range A6:A20 No data can be entered can be entered unless A1:A5 is filled in

Does someone have some code that can enable me to do this?

View 9 Replies View Related

Cell To Respond Either Or Dependant On Values Of 2 Cells

Mar 3, 2008

I am trying to get a cell to respond either or dependant on values of 2 cells.

If A1 = 13
B1 = 0
C1 = 0

I would like D1 to return A1, but

If A1 = 13
B1 = 1
C1 = 0

or

A1 = 13
B1 = 0
C1 = 1

I would like D1 to return the sum A1 + B1 + C1

View 9 Replies View Related

Variable Locked Cells Dependant On Cell Change

Jan 12, 2010

I'm trying to make a spreadsheet more secure to prevent unintentional changes.

What i'm looking to do is to lock all cells so no changescan be made unless the user clicks column A.

Column A should remain unlocked and when the user clicks it i would like the entire row unlocked for editing (but only after column A is clicked)

I will run a macro to lock the entire sheet again once the sheet closes.

View 2 Replies View Related

Unlock Cell/s Dependant Upon Entry In Another Cell

Jan 3, 2010

I've never dealt with vba before and I'm not even sure if that's correct. I wish to lock a worksheet with two cells left unlocked, when an entry is made in one or other of these two cells I need other cells to become unlocked.

View 2 Replies View Related

Locking A Certain Text Boxes, And Not Others

Feb 4, 2009

For example:

Locking a certain text boxes, and not others. Under review, protect sheet, the Edit Objects function is all or nothing

View 2 Replies View Related

New Tabs Using Text Boxes

Nov 24, 2008

I m creating new tabs that users input into a text box and two label: one each becuase one tab will be Tab1 then then other label will be Tab1 Completed.

How do you continously update the label so it changes as the user inputs letters.
I never used text boxs before so thus another reason I have no clue.

View 2 Replies View Related

VLOOKUP In VBA - Text Boxes

Jan 15, 2010

Am trying to use a VLOOKUP in VBA on a form, I am entering data in one field so data will be displayed in another field. They are both text boxes. Here is the code;

View 3 Replies View Related

Many Multiple Text Boxes

Apr 18, 2009

I have 10 Text boxes each, on many tabs of a Multipage. I have a Private Sub LoadRow() for one tab.Is there a way to use a Sub that would work for each tab or do I have to write a new sub for each tab? Here’s the sub I’m using.
Private Sub LoadRow()

txtTrussco.Text = Cells(lCurrentRow, 1).Value
txtTPhone.Text = Cells(lCurrentRow, 2).Value
txtTFax.Text = Cells(lCurrentRow, 3).Value
txtTAddress.Text = Cells(lCurrentRow, 4).Value
txtTCity.Text = Cells(lCurrentRow, 5).Value
txtTState.Text = Cells(lCurrentRow, 6).Value
txtTZipcode.Text = Cells(lCurrentRow, 7).Value
txtTSalesrep.Text = Cells(lCurrentRow, 8).Value
txtTSrepphone.Text = Cells(lCurrentRow, 9).Value
txtTrusseng.Text = Cells(lCurrentRow, 10).Value

End Sub

View 9 Replies View Related

ENABLE Text Boxes

May 23, 2009

I have a ton of text boxes on a userform that are in an initial state of being disabled. Is there a quick way of enabling by use of a mask for these Text Boxes ?

All the text boxes I want to enable are named "TB_fieldname" and by mask I mean a snippet of code using something like "TB_*"

Example
tb_liqname, tb_casecost, tb_bottleprice etc etc..

View 9 Replies View Related







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