Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
All,
The problem I have is that I have 4 sheets containing data. I want to call the showdataform from a command buttons based on the sheets. I have named the range "database" in the first sheet, but if I try to apply it to the second sheet, then all command buttons pick up the last assigned "database" name. In other words, is there a way to have the database name in all sheet ranges? Private Sub CommandButton1_Click() Range("A3:H33").Name = "Database" SendKeys "%w", False ActiveSheet.ShowDataForm End Sub Private Sub CommandButton2_Click() Range("A3:H20").Name = "Database" SendKeys "%w", False ActiveSheet.ShowDataForm End Sub Thanks, -- Brian McCaffery |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
works database - converting | Excel Discussion (Misc queries) | |||
converting from works database | Excel Discussion (Misc queries) | |||
OT? Microsoft Works Database Import? | Excel Worksheet Functions | |||
Transfering Database From Excel to Works | Excel Discussion (Misc queries) | |||
Range only works when Sheet Name is "Sheet1" | Excel Programming |