Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Excel Macro - Return to Column A?


  • Please log in to reply

#1
b22smith

b22smith

    New Member

  • Member
  • Pip
  • 1 posts
I am programming in VBA how to insert a row into a spreadsheet, then adjusts formulas accordingly above and below the inserted row, and copies a range into the blank row.

The only way I can make it work is to make sure the user starts in a cell in the the far left Column A. However, if you try to pick a cell in somewhere to the right of column A, then it causes problems with reference errors for the equations.

What I want to do is after inserting the blank row, I want the macro to return to the far left column A position, then proceed with the remaining macro instructions. Can this be done? Is there a macro equivalent to the "Home" key on the keyboard?

Brad
  • 0

Advertisements


#2
dsm

dsm

    Member

  • Member
  • PipPip
  • 98 posts
Brad,
Try the following

Range("A1").Select



regards
dsm
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP