Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Ted Collins   on Dec 01 In MS Office Category.

  
Question Answered By: Aaleyah Khan   on Dec 01

You don't say what's actually happening when you run this code. When I put it
in a small test workbook  I get an "object required" error on the

ListItems.AddItem = SourceWB.Worksheets(1).Range("b2:B50").Value

statement. This is because ListItems is not a control and therefore doesn't
have an AddItem method.

In your description, you have columns  A, B and C, but you only ever use column
B.

I think you need to give us a more detailed explanation of what you are trying
to do.

I'm also not sure what you expect the Transpose function call to do when used
with VBA variables.

Share: 

 
 
Didn't find what you were looking for? Find more on How to show a ListBox with a spreadsheet Or get search suggestion and latest updates.


Tagged: