+ Reply to Thread
Results 1 to 5 of 5

Insert blank column and copy/paste values

  1. #1
    Forum Contributor
    Join Date
    03-18-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2003
    Posts
    104

    Insert blank column and copy/paste values

    If anybody would be willing to help, again, what I'd like to have done is to have a blank column inserted between columns W and X(these values change so the VBA statement should reference the end of the columns) and the values that are now in column Y(April 17th values) pasted as values into the now empty column X. I would like to do this for tabs Ann-Sheet 2. I'm having a bit of trouble with setting up the loop that would go through the desired sheets.
    Attached Files Attached Files
    Last edited by eonizuka; 05-05-2009 at 06:30 PM.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Insert blank column and copy/paste values

    Create a name "Last_Column", refers to: "Ann!X3" for each sheet
    Note: Make sure you put the "Ann!" in front of name and the same for every worksheet.
    Then your macro could be
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-18-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2003
    Posts
    104

    Re: Insert blank column and copy/paste values

    I'm receiving a 400 error when I attempt to run the code. I have created a named range and referred it to the X3 cell in each sheet. Should I use the name Ann for each sheet or the name of the sheet? Thank you for your help Foxguy. I do appreciate it.
    Last edited by eonizuka; 04-21-2009 at 06:49 PM.

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Insert blank column and copy/paste values

    No don't use Ann for each sheet. Use the Sheet's name.
    Ann!Last_Column on Ann's sheet
    Ben!Last_Column on Ben's sheet
    etc.

    What line produces the 400 error?

  5. #5
    Forum Contributor
    Join Date
    03-18-2009
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2003
    Posts
    104

    Re: Insert blank column and copy/paste values

    Oh OK, I'll give that a try.

+ 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