I can not get around why it is that I can't ever get the line or any similar lines such as:
where the workbook name is InsertColumn,
to work with that specific Workbook. Or the problem might be that specific sheet. I'm not sure...
But if I use lines such as:
I dont' have an issue with that line other than I'm afraid that the line won't execute if the particular sheet isn't the one that's currently active.
Can someone please explain to me the difference? Is it a scope issue? What is the difference and why?
Thanks so much in advance.
Code:
Workbooks("InsertColumn").Worksheets("Sheet1").Columns(x).Insert
where the workbook name is InsertColumn,
to work with that specific Workbook. Or the problem might be that specific sheet. I'm not sure...
But if I use lines such as:
Code:
ActiveWorkbook.ActiveSheet.Columns(x).Insert
I dont' have an issue with that line other than I'm afraid that the line won't execute if the particular sheet isn't the one that's currently active.
Can someone please explain to me the difference? Is it a scope issue? What is the difference and why?
Thanks so much in advance.