Inputbox Type 0 Get Formula From Range

less than 1 minute read

InputBox Type 0 – get formula from range

'==================================================================================================
' ## InputBox Example 6: (Type 0) - Inputbox to get formula from range
'==================================================================================================
Sub InputBoxFormula() '// Vars Dim YourFormula As Variant '// Get formula from cell YourFormula = Application.InputBox _ (Prompt:="Get the formula", Title:="Formula example", Type:=0) '// Test if clicked cancel If YourFormula = False Then Exit Sub '// Output ActiveCell.Value = YourFormula
End Sub

Tags: inputbox

Categories: vba

Updated: March 29, 2019

Twitter Facebook LinkedIn

1 minute read

Here’s the simple steps to highlight the row and column of the selected cell which can be extremely useful when navigating large sets of data. Here’s a littl…

less than 1 minute read

How it Works Using SEARCH and ISNUMBER When you need to check if a cell contains specific text (or string) we need to combing the SEARCH and ISNUMBER functio…

less than 1 minute read

So you have a 0% value on one of your data labels and want to hide it?

1 minute read

Download the example workbook here: calculate-time-between-dates.xlsx

Leave a Comment