+ Reply to Thread
Results 1 to 14 of 14

Attach a macro to a print button that will print a certain row on my sheet

  1. #1
    Registered User
    Join Date
    12-12-2020
    Location
    Canada
    MS-Off Ver
    dont know
    Posts
    5

    Attach a macro to a print button that will print a certain row on my sheet

    Hello,
    I am completely new to VB.
    This is what I want to do: I would like to have a print button on my sheet that will print only one row. The macro could request which row from a drop down or print just the row selected. Any help would be appreciated.

    Thanks
    Geraldine

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Please Login or Register  to view this content.
    Or if you want to give it a Row Number.

    Please Login or Register  to view this content.
    Last edited by jolivanes; 12-12-2020 at 01:56 AM. Reason: Additonal code

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Or you can do it this way also.
    Enough possibilities?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-12-2020
    Location
    Canada
    MS-Off Ver
    dont know
    Posts
    5

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Thanks so much

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Thanks for letting us know and have a good weekend.
    Stay safe

  6. #6
    Registered User
    Join Date
    12-06-2020
    Location
    Forl', Italy
    MS-Off Ver
    Office 2019
    Posts
    20

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    @ Bruno
    I hope that they have a printer with +/- 2000 sheets of paper in it if they happen to run your suggestion with the ActiveCell to the right of the used range.

  8. #8
    Registered User
    Join Date
    12-06-2020
    Location
    Forl', Italy
    MS-Off Ver
    Office 2019
    Posts
    20

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Well I missed to say the ActiveCell must exclude the the extreme ones of the line range.

    I want to print the line H10:Q10 (of course the definition implies H9 and Q11 are blank cells, otherwise H10:Q10 is not a line but only a portion of a line).
    The ActiveCell must be in the range H11:Q9.

    Is that clear enough?

    What is the function of a Forum Expert:
    to be constructive or argumentative?

  9. #9
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    It's called "tongue in cheek", in other words "jokingly"
    If I offended you, my apologies.

  10. #10
    Registered User
    Join Date
    12-06-2020
    Location
    Forl', Italy
    MS-Off Ver
    Office 2019
    Posts
    20

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Saying the truth you can offend only a stupid man.
    I don't estimate me a stupid man, then you didn't offend me.

    It was the same for me: just joking.

    Ciao

  11. #11
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    All is well then.
    Stay safe

  12. #12
    Registered User
    Join Date
    12-12-2020
    Location
    Canada
    MS-Off Ver
    dont know
    Posts
    5

    Re: Attach a macro to a print button that will print a certain row on my sheet

    Hello,
    How would I get the one row to print as two lines. I find that the print is small as it is printing on a 3.5x2.5 sticker.

    Thanks

  13. #13
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Attach a macro to a print button that will print a certain row on my sheet

    @neen149
    Please read the forum rules. #4 Comes to mind.

  14. #14
    Registered User
    Join Date
    12-12-2020
    Location
    Canada
    MS-Off Ver
    dont know
    Posts
    5

    Re: Attach a macro to a print button that will print a certain row on my sheet

    My apologies I will post new

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to Print to PDF and attach to email
    By Foppotee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2020, 02:34 PM
  2. vba macro for print button that brings up print screen selection window
    By kellie1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2020, 12:52 PM
  3. [SOLVED] Button To Print Specific cell Range On One Sheet In Print Selection
    By diddy47 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-03-2020, 06:23 AM
  4. VBA code to have print button and print the required area in sheet.
    By Ishwarind in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-09-2016, 03:54 AM
  5. Disabled print toolbar and menu but Print Macro button cannot print also...
    By zein97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2014, 01:42 PM
  6. procted sheet macro print button
    By Syldania in forum Excel General
    Replies: 7
    Last Post: 06-23-2011, 09:29 AM
  7. Print Button to print UserForm for multi-sheet
    By smartcard in forum Excel General
    Replies: 12
    Last Post: 04-29-2010, 07:47 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