Results 1 to 2 of 2

Help with code.

Threaded View

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2010
    Posts
    44

    Help with code.

    I have this code to save a sheet as pdf to a certain folder.

    Dim intResults As Integer
     Dim sPath As String
     sPath = Environ("USERPROFILE") & "\Documents\" & "\PublisherList\"
    Sheet4.Range("N1:Y1").Select
    ActiveSheet.ExportAsFixedFormat xlTypePDF, sPath & _
      InputBox("Please provide a name for the PDF file.") & ".PDF"
    Sheet4.PrintPreview
    I would like to alter the code so that it doesn't select any extra rows.


    wayneo
    Last edited by wayneao; 11-12-2014 at 07:06 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  2. [SOLVED] VBA code for assigning a numeric code to text; then numeric code populates table
    By cteaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2014, 08:01 PM
  3. [SOLVED] Excel Macro Visual Basic code not looking at all sheets with second section of code.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2014, 08:26 AM
  4. Replies: 2
    Last Post: 12-17-2013, 11:51 AM
  5. Replies: 2
    Last Post: 03-09-2013, 04:30 AM

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