Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
error 400
I open a workbook with vba, I then wish to copy data from the sheet to the
host workbook. This works fine until I attempt to select a range in the opened sheet: Workbooks.Open FileName:=FileName Windows(FileName).Activate Range("B7:E18").Select The range select causes an error 400. Is this because the I am not opening the file with read write permissions? Anyone help with this. Thanks -- JoeBo |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
error 400
Found the answer.
I was not specifying the sheet. instead of Range("B7:E18").Select I should have put: ActiveSheet.Range("B7:E18").Select "JoeBo" wrote: I open a workbook with vba, I then wish to copy data from the sheet to the host workbook. This works fine until I attempt to select a range in the opened sheet: Workbooks.Open FileName:=FileName Windows(FileName).Activate Range("B7:E18").Select The range select causes an error 400. Is this because the I am not opening the file with read write permissions? Anyone help with this. Thanks -- JoeBo |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Error: "Excel encountered an error and had to remove some formatti | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming |