I am trying to get a textbox to record an area selected by a use (the same way that it is done in graphs) but I am at a loss how it is done. Any ideas?
I am trying to get a textbox to record an area selected by a use (the same way that it is done in graphs) but I am at a loss how it is done. Any ideas?
What doesn't kill you is just biding it's time
Hi, nemmi69,
Textbox in a worksheet or on a UserForm?
Ciao,Please Login or Register to view this content.
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
The textbox is on a worksheet. The graph textbox does not use an inputbox you just click it the highlight the area concerned and that shows in the textbox.
Hi, nemmi69,
I think what you are talking about is not a TextBox but the RefEdit-Control which features the showing of the address and the possiblility to either enter directly or via chossing the range with the mouse. Maybe check that control out.
Ciao,
Holger
Yes that's what I am trying to emulate
Hi, nemmi69,
sorry but to my knowledge you would need 2 controls for that: the textbox to display the address and a dropdpon which lets you enter the address manualy or select via Mouse / Keyboard. Maybe you could have a look at Alternative to Excel’s Flaky RefEdit Control.
Ciao,
Holger
My problem seeems that all the examples have user forms and i just have the textbox on the worksheet.
Well I came up with this for a textbox on a worksheet. At the moment it only works for the current workbook though on any worksheet.
So :-
1] How do you get it to work for other workbooks?
2] Does anyone see anything wrong with this or other problems?
In ThisWorkbook
In Sheet1 where the textbox residesPlease Login or Register to view this content.
In ModulePlease Login or Register to view this content.
Please Login or Register to view this content.
Hi, nemmi69,
you work exclusively with the active workbook and the active sheet in your code. If you have set a range the Parent of this will give you the worksheet name, Parent.Parent will deliver the name of the workbook (untested):
Ciao,Please Login or Register to view this content.
Holger
Well I was looking for this to be able to take a range from a different workbook.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks