Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there an automatic conversion?
I must ask the user for a range but the input box returns a string. I check for "conversion" inside VBA help and I find out nothing. Thanks Alex. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
use the application.inputbox with the type:=8. e.g. Sub foo() .... Dim aralik As Range On Error Resume Next Set aralik = Application.InputBox(prompt:="Select range:", Type:=8) If Err < 0 Then Exit Sub End If On Error GoTo 0 ' your code .... End Sub -- Regards Frank Kabel Frankfurt, Germany "y" schrieb im Newsbeitrag ... Is there an automatic conversion? I must ask the user for a range but the input box returns a string. I check for "conversion" inside VBA help and I find out nothing. Thanks Alex. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Frank,
thanks for your tips. Just a question: why Set aralik = Application.Inp... ? and not aralik = Application.Inp... Alex. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
you want to get a range (which is an object) For object assignments you nee set. e.g. the following won't work: dim rng as range rng = range ("A1:A2") but the following will dim rng as range set rng = range ("A1:A2") -- Regards Frank Kabel Frankfurt, Germany "y" schrieb im Newsbeitrag ... Hi Frank, thanks for your tips. Just a question: why Set aralik = Application.Inp... ? and not aralik = Application.Inp... Alex. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
String formula conversion | Excel Discussion (Misc queries) | |||
Prevent conversion of numeric text string to scientific notation | Excel Discussion (Misc queries) | |||
String to Variant incorrect conversion | Excel Worksheet Functions | |||
date range conversion | Excel Discussion (Misc queries) | |||
String to Array Conversion | Excel Programming |