Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
My VB project is coming along just fine, but I'm stuck on this on thing.. When I open files from a listbox (multiSelect) I want to call function to format the just opened workbooks. What happens now is tha the called function is running on the workbook containing th macro/form. Instead of calling the function I've written a line to activate cel A3, which it selects on the macro/form workbook, not the just opene workbooks as it is supposed to. iDestRow = 1 With Me.ListBox1 For i = 0 To .ListCount - 1 If .Selected(i) = True Then Excel1.Visible = True Excel1.Workbooks.Open _ Filename:=.List(i, 0), _ Format:=xlCSV, _ Delimiter:=",", _ ReadOnly:=True Range("c3").Select I've been thinking about using .List(i, 0) as a reference to activat workbooks, but I can't find any info about activating workbooks o variables... If you need more code or info, please let me know! Many thanks! Joos -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbooks(WorkbookName).Activate Failure | Charts and Charting in Excel | |||
When I open Excel, workbooks open automatically. How can I stop t | Excel Discussion (Misc queries) | |||
Lost ability to open (activate) Excel files from Explorer, Outlook | Excel Discussion (Misc queries) | |||
how do I activate links without opening external workbooks? | Excel Discussion (Misc queries) | |||
Use Array to activate workbooks | Excel Programming |