Hello,
I've looked everywhere and I can't find an answer to this, so I appreciate any and all help on solving this issue.
I have an Excel workbook that will open other workbooks and remove duplicates. However, the columns that need to be included in the remove duplicates will vary depending on the workbook being open.
In the main workbook I have the column array values stored in a cell and identified for each of the different workbooks that it will open, however, what I can't do is pass the cell value of the column array to the visual basic code.
For instance in my main workbook, cell A1 = 1, 5 and I'm trying to populate the value from cell A1 into this code and run in the newly opened workbook:
In another instance in my main workbook, cell A2 = 1, 3, 5, 7 and I'd then like to pass that value into the code and run in the newly opened workbook:Please Login or Register to view this content.
I just can't figure out how to turn that string or value into what the Columns:=Array value is when trying to remove duplicates.Please Login or Register to view this content.
Any help on getting the value that's in A1 or A2 into the Columns:=Array(___) code?
I hope I've been able to explain myself clearly. Thanks in advance for any assistance!
Bookmarks