Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi. I have created a macro in Excel which have a Form. The form contain among other things a RefEdit. When I launch the macro this RefEdit i empty, but I want it to contain for example Sheet1!$F$2:$F$9 as th default value if these cells are selected in the active sheet. So what I need to know is if there is a way to get the selecte range/cell(s) as a string representation. Pseudo code: ----------------------------- Code ------------------- Public Sub MyMacro() Dim MyRefString As String ' Start of getting Selection as String-- MyRefString = ... '<-- End of getting Selection as String With MyForm .MyRefEdit.Value = MyRefString End With ... End Sub ------------------- ------------------------------- Any ideas? /Jörge -- Shakespea ----------------------------------------------------------------------- Shakespear's Profile: http://www.excelforum.com/member.php...fo&userid=2595 View this thread: http://www.excelforum.com/showthread.php?threadid=39328 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Limiting selection in a cell AND linking that selection to a list | Excel Discussion (Misc queries) | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
to search for a string and affect data if it finds the string? | Excel Worksheet Functions | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming |