I'm creating a workbook that requires a lot of time entry and I want to make data entry faster by allowing the user to type in only the digits of the time and not need to enter the ':'. Basically, if someone types in 315 or 1100 in a cell in the specified range, then I want them to become the times 3:15 and 11:00 respectively. The range of cells in question are already in "Time" format and there is no need to worry about AM or PM. I need this to be a 'type' conversion, not a 'format' conversion. (The only codes I've tried have been way off base, because I'm new and have no idea where the begin on this one)
Is there a way to turn three and four digit numbers into time codes in VBA?
84 Views Asked by Dominique At
1
There are 1 best solutions below
Related Questions in EXCEL
- Power Query / M Code, extract a list of tables into one main table, some column headers same but some different and in different order (and in row 2)
- Is there a way to validate the cell format (from excel) to fetch the symbol from it (in Java)?
- Excel - Visual Basic, macro with autofill "1"
- Getting Run-time error '13': Type Mismatch using .Find
- Getting website metadata (Excel VBA/Python)
- Excel Code Editor doesn't work (blank window)
- How to find out how many of each 2, 3 and 4 required to fit in 100 using excel?
- How would I apply a rather complex summation formula like this in Excel?
- Removing a Button from Customized Excel Ribbon
- Excel - Update Item Description Based on Accessories Ordered with It
- select duplicates from data based on another column
- How to use VBA to bold just some text
- VBA Code to filter and get values from csv to excel worksheet
- Look up max alpha numeric value
- Azure Batch for Excel VBA
Related Questions in VBA
- Toggle "conversation view" in Outlook with VBA
- VBA query - sort text in alphabetical order in Word
- Excel - Visual Basic, macro with autofill "1"
- Getting Run-time error '13': Type Mismatch using .Find
- Getting website metadata (Excel VBA/Python)
- How to use VBA to bold just some text
- VBA Code to filter and get values from csv to excel worksheet
- Azure Batch for Excel VBA
- How can i printpreview multiple excel sheets, with the names of the sheets located in a range?
- Comparison the data of two row and unique number highlight and show below of it
- Is there a way to pass Today's date as a command line argument to Excel from a Windows Task Scheduler Job
- Xero Upload Invoice file using API
- Visual Basic For Application Related Question
- Trying to give color to column field headers in pivot table with vba
- General error handler: If any error in UserForm other than msgBox: Err.Description
Related Questions in TYPE-CONVERSION
- Problem converting time series df from chr to date using as.POSIXct
- Is there a way to convert unknow file type to human readable format?
- Is converting uint16_t into uint8_t[2] using a cast valid in C?
- Error in R: column type remains 'character' even after applying as.numeric
- Why is an empty string in JavaScript equals to zero?
- How to convert OpenCvSharp.Mat to Emgu.CV.Mat?
- How do I convert an object value to a str value in Pandas?
- `pandas` datetime - correct way to do linear interpolation
- Convert decimal to string with at least a zero for integer value in C#
- R - Convert various csv numeric columns to date
- How do I represent enum variants in json for serde?
- Implementing generic Borrow transitively for HashMap key lookup
- Why can't I use a list of functions returning a generic class with different type parameters in C#
- How to format an array of numbers into a string in C#?
- Convert numeric column to integer if possible, otherwise keep as numeric
Related Questions in TIME-FORMAT
- How to convert datetime data to numeric data to create a line graph?
- The best representation for duration between dates in rest api
- trying to change 24hr to 12hr format
- Change Time format Powershell Azure
- Tableau - How to view time column up to 3 digit milliseconds?
- How to format time in "h m s" format in swift using `Duration.TimeFormatStyle`
- Json request body for time format
- Histogram hover text for ggplot and plotly with time formatting
- Android - format time (hour and minutes) to specific locale (12h05, 12u05.. etc)
- Display DateTime with additional zoneOffset value if Zone is present
- What format is the RabbitMQ uptime?
- Full Calendar dayGridMonth not showing dot and time format
- Microsoft Access time formatting
- How can I make an autocomplete setting for a custom time format in google sheets?
- .toLocaleTimeString() syntax not displaying AM/PM in safari browser
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For anyone that is interested, this is what I came up with for fast time entry: