Results 1 to 4 of 4

VBA to copy only visible rows to Notepad

Threaded View

  1. #1
    Registered User
    Join Date
    07-21-2012
    Location
    Cannock, England
    MS-Off Ver
    2007
    Posts
    11

    Unhappy VBA to copy only visible rows to Notepad

    My code is as follows.

    it creates everything as it should but just need it to copy only visible rows.

    I have another macro that runs first to hide certain rows depending on there value.

    Sub Notepad()
    Dim Rng As Range
    Dim wb As Workbook
    Set Rng = Range("B1:B2413")
    Set wb = Workbooks.Add
    With wb
    Rng.Copy
    .Worksheets(1).Range("B1:B3000").PasteSpecial Paste:=xlValues
    .SaveAs "C:\Users\Leigh\Desktop\SomeFile.scr", xlTextMSDOS
    .Close False
    End With
    End Sub
    Please Help
    Last edited by Cutter; 10-27-2012 at 05:25 PM. Reason: Added code tags

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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