Oct 10, 2008 #1 chilly442 Technical User Jun 25, 2008 151 US Want to do something like this, but can't get it to work. Any ideas??? x = 1 Sheets("Sheet1").Range("x + 1, 15: x + 1, 7").Select If I run the above code I get: "application-defined or object-defined error" Thanks, Chilly442
Want to do something like this, but can't get it to work. Any ideas??? x = 1 Sheets("Sheet1").Range("x + 1, 15: x + 1, 7").Select If I run the above code I get: "application-defined or object-defined error" Thanks, Chilly442
Oct 10, 2008 1 #2 ettienne Programmer Oct 29, 2005 3,388 US Remove the quotes from Code: "x + 1, 15: x + 1, 7" Upvote 0 Downvote
Oct 10, 2008 1 #3 AnotherHiggins Technical User Nov 25, 2003 6,259 US Have a look at CELLS. Something like this: Code: Sheets("Sheet1").Range(Cells(x + 1, 15), Cells(x + 1, 7)).Select [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ 181-2886 before posting. Upvote 0 Downvote
Have a look at CELLS. Something like this: Code: Sheets("Sheet1").Range(Cells(x + 1, 15), Cells(x + 1, 7)).Select [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ 181-2886 before posting.