Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box does not allow selection in another file
Pasted in your code and ran it in xl2000.
I had no problem selecting from any open workbook. So no, there are no adjustments to your code that would allow you to select from any open workbook. As I recall, xl2002 or xl2003 had a problem with this, but I was under the impression this was using a refedit control on a userform (which has the same functionality), but perhaps the problem affects the application.inputbox as well. What version of Excel are you using? -- Regards, Tom Ogilvy "quartz" wrote in message ... Yesterday Tom Ogilvy kindly responded to my post and made a few slight corrections to my function, which consists of an input box that retrieves and returns the file name, sheet name, and range selected by the user. Thanks to Tom, my function now allows the user to make a selection on any sheet in the currently ACTIVE file. However, it won't allow the user to switch to another file once the input box is opened. Is it possible to tweak my function some more to make this possible? If not is there an efficient work around? My current code follows (please correct for line wrapping): Function InputBoxRange() As String Dim rngResponse As Range Dim strMsg As String Dim intConfirm As Integer On Error Resume Next Do Set rngResponse = Application.InputBox("Type or select the range containing the first list to be compared:", "RANGE VALIDATION", Selection.Address, , , , , 8) If Err.Number < 0 Then Err.Clear: End Application.Goto rngResponse intConfirm = MsgBox("Is the following selection correct?" & vbCr & vbCr & rngResponse.Address(External:=True), vbQuestion + vbYesNo, "CONFIRM SELECTION") If intConfirm = vbYes Then Exit Do Loop InputBoxRange = rngResponse.Address(External:=True) End Function Thanks much (again) in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box does not allow selection in another file
"quartz" skrev i melding
... I'm using Win 2000 with Office XP and it doesn't work...do you know of any work arounds or am I hosed? Hi Tested with Excel2000, Excel XP and Excel 2003 on WinXP: With the dialog running, I can no longer switch between open workbooks using the taskbar. But both Ctrl F6 keypresses and Excel's Window menu choices work fine and the code returns a valid result doing this. HTH. Best wishes Harald |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box does not allow selection in another file
I was using the Window menu choices. Didn't try any other method. Just
assumed that's how anyone would do it <g. -- Regards, Tom Ogilvy "Harald Staff" wrote in message ... "quartz" skrev i melding ... I'm using Win 2000 with Office XP and it doesn't work...do you know of any work arounds or am I hosed? Hi Tested with Excel2000, Excel XP and Excel 2003 on WinXP: With the dialog running, I can no longer switch between open workbooks using the taskbar. But both Ctrl F6 keypresses and Excel's Window menu choices work fine and the code returns a valid result doing this. HTH. Best wishes Harald |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Input selection choices | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Hyperlink for file selection only | Excel Worksheet Functions | |||
Extracting data from one xls file and input into another xls file | Excel Discussion (Misc queries) | |||
User Input File Name | Excel Programming |