Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keith...
I didnt follow thread BUT application.InputBox with Type 8 will popup an inputbox with refedit functionality. Bit simpler then creating a userform :) Sub UserRangeSelect() Dim r As Range On Error Resume Next Set r = Application.InputBox(Prompt:="Which Range", Type:=8) If Not r Is Nothing Then MsgBox r.Address End Sub keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "Keith Lorenzen" wrote: I didn't ask the original question, but your answer just helped me solve a somewhat similar problem. As to tootles' original question, I think I have a solution. You can make a form pop up with a Refedit Control on it, which allows the user to select a range, and then you operate on it. Below is a sample of code I have used successfully. I think I borrowed most of it from MS Help. UserForm1.Show 'this code goes in the original macro The following code might go in the click event of a button on UserForm1 that you create. For Each c In Range(RefEdit1.Value).Cells c.Value = "'" & c.Value 'I'm turning a value into text, but you would insert your own code here Next UserForm1.Hide Hope this helps, Keith Lorenzen -----Original Message----- If you could get your users to select the range first, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need info to display only after date is current and stay there | Excel Discussion (Misc queries) | |||
Current year and current week number | Excel Discussion (Misc queries) | |||
Copy info into empty cells below info, until finds cell with new d | Excel Discussion (Misc queries) | |||
How do I create a chart that will show 4 weeks of current info? | Charts and Charting in Excel | |||
Can I automatically enter the current date or current time into a | New Users to Excel |