Consulting

Results 1 to 2 of 2

Thread: an active sheet save as copy

  1. #1

    an active sheet save as copy

    hello,
    i'm having the following problem, and i'm getting it not fixed.

    [vba]Dim exemplaar As String
    exemplaar = Application.InputBox(Title:=UCase("Wat moet er gebeuren ?"), prompt:="* Document opslaan en afsluiten ? = Antwoord : Ja" & vbLf & "* Pagina afdrukken, geef aantal exemplaren :" & vbLf & "* niets doen : antwoord A", Default:="1", Type:=2)
    Select Case UCase(exemplaar)
    Case "", "A": MsgBox "je hebt op annuleren gedrukt"
    Case "JA": ActiveSheet.SaveAs "G:\Project\Temp.File\Brandstofverbruik" & SheetName & ".xlsm"
    Sheets("Schakelbord").Select
    Range("E15").Select
    Case Else
    If IsNumeric(exemplaar) Then
    If CInt(exemplaar) > 0 Then ActiveSheet.printout Copies:=CInt(exemplaar), Preview:=False
    End If

    End Select
    End Sub[/vba]

    The problem is, when i select "case Ja", it has to save the active sheet as copy in the folder on G( like above). with the Range A1 till J30. the Buttons i want to hide in the copy.
    i just can't get it fixed!
    please anyone
    Attached Files Attached Files
    Last edited by Bob Phillips; 05-02-2011 at 05:29 AM. Reason: Added VBA tags

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    What bit needs fixing?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •