+ Reply to Thread
Results 1 to 2 of 2

Looking to fix a simple problem

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    13

    Looking to fix a simple problem

    Hi!

    I am wanting to select the second row of a column to the end of my data for that column and then to insert a column to the right, avoiding the first row entirely.

    Here is what I was trying to do (unsuccessfully):


    Range("A2:" & (Cells(Rows.Count, "A").End(xlUp).Row)).Insert Shift:=xlToRight

    Can someone help me to fix this little problem?

    Thanks!

  2. #2
    Registered User
    Join Date
    09-10-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Looking to fix a simple problem

    Solved it...simple of course:

    Dim erg As Range
    Set erg = Range("A3").End(xlDown)


    Range("A2", erg).Insert Shift:=xlToRight

    That seemed to do the trick!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1