Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VBA minimum margin

VBA minimum margin

Scheduled Pinned Locked Moved Visual Basic
jsonhelptutorialquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JR212
    wrote on last edited by
    #1

    Hi, I need the minimum margin in vba excel or word. I know how to set it in vba and in dot net. But I can't find the minimum in vba. I guess I will need some API but if I find something usefull I must know the hdc and that I also can't find that. in vb6 there was printer.hdc but not in vba. Who can help me? Jan

    L 1 Reply Last reply
    0
    • J JR212

      Hi, I need the minimum margin in vba excel or word. I know how to set it in vba and in dot net. But I can't find the minimum in vba. I guess I will need some API but if I find something usefull I must know the hdc and that I also can't find that. in vb6 there was printer.hdc but not in vba. Who can help me? Jan

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Minimum margins are dependent on the print device that you are sending the output to. I would guess you need to look at printer properties.

      J 1 Reply Last reply
      0
      • L Lost User

        Minimum margins are dependent on the print device that you are sending the output to. I would guess you need to look at printer properties.

        J Offline
        J Offline
        JR212
        wrote on last edited by
        #3

        Hi, I know but I have looked and can't find it. Our old printers have lesser margings that the new. now we have AGAIN different margings so I want to use the printer minimum possible margin and >.5cm so when I can read them a simple if then, structure will help me. but now I can't read it. remember it's in VBA :) Jan

        L 1 Reply Last reply
        0
        • J JR212

          Hi, I know but I have looked and can't find it. Our old printers have lesser margings that the new. now we have AGAIN different margings so I want to use the printer minimum possible margin and >.5cm so when I can read them a simple if then, structure will help me. but now I can't read it. remember it's in VBA :) Jan

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sorry, I am not a VBA expert, and this forum is mostly for VB/VB.NET questions.

          J 1 Reply Last reply
          0
          • L Lost User

            Sorry, I am not a VBA expert, and this forum is mostly for VB/VB.NET questions.

            J Offline
            J Offline
            JR212
            wrote on last edited by
            #5

            I know but this the best forum I know :)

            L 1 Reply Last reply
            0
            • J JR212

              I know but this the best forum I know :)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              There are forums dedicated to VBA, you should try one. Just Google something like "VBA printer settings", and see what it gets you.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups