Results 1 to 3 of 3

how to delete imported data from sheet in VBA

Threaded View

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2003
    Posts
    3

    how to delete imported data from sheet in VBA

    Hi I am trying to clear the imported data in a sheet using VBA. I have tried using:
    Sub test()
    
    Sheet2.Cells.ClearContents
    
    
    End Sub

    but excel still sees the imported data and I can only edit it instead of being able to import new data.
    Any ideas on how to delete it with a macro?

    Thanks,
    Brad
    Last edited by Leith Ross; 04-26-2011 at 04:13 PM. Reason: Added Code Tags

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