Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok, I'm trying to figure out this issue. I have a combo box with
several values that a user has to choose from. These values for example go from A - C. I have named three sheets Sheet1, Sheet2, and Sheet3. They're codenames are A, B, and C respectively. How can I get access to these sheets using the entry from the combo box? ElseIf ComboBox.Value < "" Then Dim RowUse As Long Dim wsh As Worksheet Set wsh = ComboBox.Value RowUse = wsh.Range("A65536").End(xlUp).Offset(1, 0).Row wsh.Cells(RowUse, "A").Value = NameBox.Text wsh.Cells(RowUse, "B").Value = IDBox.Text this doesnt work.. does anyone have any other ideas? So let me just confirm .. using Sheets() and Worksheets(), what goes in the parenthesis is the actual Name from the name property not the name from (name) [the code name] correct?. I know u would be able to do A.cells(RowUse,"A")... etc. but if i have 20 different sheets i dont have to have an elseif for each sheet... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need open or gain access to an external file | Excel Discussion (Misc queries) | |||
using variables in codenames | Excel Programming | |||
Gain access to Email | Excel Programming | |||
Spreadsheet to do annual investment gain$, % gain, for list | Excel Worksheet Functions | |||
Using worksheet codenames | Excel Programming |