Combo Box Fill Range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ok, I know I have seen this before but I can't seem to locate an answer for this. I am using a combo box from the forms menu and I need to have the macro set the .listfillrange to a value based on the last cell that contains data. The actual control is on a different sheet than the range of data that will fill it. Here is what I have right now but its not working, and like I said I know I have seen this before, but I just can't seem to find the answer

Sub ComboBoxFill(
Dim LastRow As Lon

Sheets("MenuControls").Selec
LastRow = Sheets("DataSheet").Cells(Rows.Count, "I").End(xlUp).Ro
ActiveSheet.Shapes("Drop Down 16").Selec
With Selectio
.ListFillRange = "DataSheet!I2:I" & LastRo
.LinkedCell = "DataSheet!$G$2
.DropDownLines = LastRow -
End Wit
End Su

Any help would be great, this is just frustrating me, and I know somewhere I had the solution before

Tim
 
Tim,

What is not working. It seems fine to me. What are you getting?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Tim Halligan said:
Ok, I know I have seen this before but I can't seem to locate an answer
for this. I am using a combo box from the forms menu and I need to have the
macro set the .listfillrange to a value based on the last cell that contains
data. The actual control is on a different sheet than the range of data
that will fill it. Here is what I have right now but its not working, and
like I said I know I have seen this before, but I just can't seem to find
the answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top