![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: May 2002
Location: Nederland
Posts: 57
|
I have a sheet where users must input two letters of the postal-code, and the result must be uppercase regardless what the keyboard settings are at the moment of the input. Is there a ucase Cell preset-setting of that column, or do i have to build it into a macro after the input is done. Can anyone help me with this problem?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
Try out this download,its free
http://www.asap-utilities.com check it out,then tell me if you still need a code to perform this duty. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: May 2002
Location: Nederland
Posts: 57
|
Will check it out, thank you...
Real cool, fast service... |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: May 2002
Location: Nederland
Posts: 57
|
I downloaded it, and installed it...
And it works... But now it works for my computer. But now it has to run on any computer... So I have to find my own solution still... |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Florida
Posts: 82
|
Try using =upper(b1)where your text is in b1.
Denny |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Hi,
For an automatic solution, use a worksheet_change event. In a sheet module, not a regular code module, place the following: Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count = 1 And Target.Column = 2 Then Target = UCase(Target) End Sub Change the target.column to your column. It is 2 (= column B) here. |
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
I have a question though: Is it possible to variablize/parameterize the target column, for example, forcing the code to read from a cell in a worksheet called Admin? Aladin |
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Quote:
If I'm following you correctly, you want to be able to read data from a specific cell from a sheet named "Admin". (we'll use the old favourite cell, "A1") Let's say, for example, whenever a value in column A on Sheet1 changed, we want to put the data from "Admin!A1" into "Sheet1!B1" We would do this:
If I didn't pick up your example properly, just repost. Basically, anything you can do in a spreadsheet using Excel functions can be accomplished using VBA. (the trick is to find out how to do it |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: May 2002
Location: Nederland
Posts: 57
|
Thank you Jay, You are super...
[ This Message was edited by: XiniX on 2002-05-02 06:42 ] |
|
|
|
|
|
#10 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
If I didn't pick up your example properly, just repost. Alas, you didn't I want Jay's code to read from Admin!A1 which column it should watch for user input and upper the inputted values. What modification would the dark side apply to that code? Aladin |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|