Selecting Active Cell before Text Import Routine

P

Paul

I have set up a routine to import a text file into Excel. I have macro button set up on the first worksheet, but I want the import to happen to a subsequent page. Does anyone know what VBA is required to select a new "active cell" or "active worksheet" for a macro within the same workbook? Thanks for your help....signed, cold in Detroit.
 
P

peterDavey

Paul, try this:

Worksheets("sheet2").Activate
ActiveSheet.Range("a5").Activate

peterDavey
(just right in Melbourne)

Paul said:
I have set up a routine to import a text file into Excel. I have macro
button set up on the first worksheet, but I want the import to happen to a
subsequent page. Does anyone know what VBA is required to select a new
"active cell" or "active worksheet" for a macro within the same workbook?
Thanks for your help....signed, cold in Detroit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top