Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting Cell Values???

I don't know if that is the correct question, buy what I am wondering is if
you can set a cells value by typing in an acronym in another cell. For
example I type in the acronym: 4man in a specific cell and the value $80.00
shows up in another specified cell. I know how to do the equations, just
hoping I can do this acronym thing to speed things up.

Hope this question makes sense, my explanation may be lacking a bit.

Any hel p is appreciated.

J
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 586
Default Setting Cell Values???

You could use the Worksheet_Change Event. This event will execute any time a
single cell is changed. You will have to customize the code to your needs
though. I just put some examples in like "5girl" and "whatever". You will
also have to specify where you want then related data to be located.

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)

'confirms that the Target is a single cell
If Len(Target.Address) = 4 Then

Select Case CStr(Target.Value)

Case Is = "4man"
Sheets("Sheet1").Range("B1") = "$80.00"

Case Is = "5girl"
Sheets("Sheet1").Range("B2") = "$20.00"

Case Is = "whatever"
Sheets("Sheet1").Range("B3") = "whatever"

End Select
End If

End Sub

Hope this helps! If you please click "Yes" below.
--
Cheers,
Ryan


"Music Junkie" wrote:

I don't know if that is the correct question, buy what I am wondering is if
you can set a cells value by typing in an acronym in another cell. For
example I type in the acronym: 4man in a specific cell and the value $80.00
shows up in another specified cell. I know how to do the equations, just
hoping I can do this acronym thing to speed things up.

Hope this question makes sense, my explanation may be lacking a bit.

Any hel p is appreciated.

J

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically setting CELL COLORS based on TWO OTHER cell values Tom Excel Discussion (Misc queries) 3 February 22nd 09 07:34 PM
Setting values in a cell Stephen Excel Discussion (Misc queries) 3 July 10th 08 08:23 PM
Setting cell values in Excel [email protected] Excel Programming 0 February 9th 07 05:06 AM
Setting Cell Values from VBA Casteele/ShadowLord Excel Programming 1 December 20th 06 12:10 AM
Need Help Setting Cell Values Jay Excel Programming 1 September 29th 05 04:09 PM


All times are GMT +1. The time now is 01:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"