Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Custom List Box Range Query

Status
Not open for further replies.

Bumpthis

IS-IT--Management
Nov 5, 2001
16
GB
Hi
I have a excel list box which i made from a vba manual, however i have to open this spreadsheet via the internet explorer browser and am getting a debug error of Method 'Range' of object'_Global' failed
My code is and its highlighting the the Range line ????
Private Sub cmdOk_Click()
Range("$Q$1").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Value = department.Value
Else
ActiveCell.Value = department.Value
End If
Loop Until Not IsEmpty(ActiveCell) = True
Application.EnableEvents = False
chart1_change
chart2_change
Application.EnableEvents = False
Range("$Q$1").Select
Unload Me
End Sub

Any help would be greatly appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top