+ Reply to Thread
Results 1 to 3 of 3

Having trouble inserting rows

  1. #1
    Registered User
    Join Date
    10-29-2006
    Posts
    7

    Having trouble inserting rows

    Hi,

    I have a macro setup to import a tab-delimited .txt file. One thing I'd like it to do is insert a row at the top of the "spreadsheet," so I can add column headings. I tried the following code:
    Please Login or Register  to view this content.
    , but got an error message saying that it cannot shift nonblank cells of the workbook. The last row is 189, so I tried adding data to cell A190, then setting it to null, hoping it'd create a new row, but I keep getting the same error. Can anyone provide suggestions as to achieve this?

    Thanks,
    Chris

  2. #2
    Forum Contributor
    Join Date
    01-21-2005
    Location
    Colorado
    MS-Off Ver
    2000,2003,2007
    Posts
    481
    This code should insert a row at the top of your sheet

    Please Login or Register  to view this content.
    HTH

  3. #3
    Registered User
    Join Date
    10-29-2006
    Posts
    7

    Smile

    Worked like a charm. Thanks.

+ 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