+ Reply to Thread
Results 1 to 2 of 2

Clipboard contents in vba save as code

  1. #1
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Clipboard contents in vba save as code

    I am starting a new position that will require me to open the workbook, checkbox some variables, save the print area as pdf, and name it using the employee name and number.

    I have created a basic save as macro that does all the above except the employee name/number.

    In a non-printing part of the worksheet I have a concantenate cell that pulls the employee name a dash and his or her number and the .pdf extension. I figured I would copy that cell, run the macro, and paste that into the filename dialog box. One control v later and I found that it won't do that.

    Is there a vba command to put the clipboard contents into the filename dialog box?

    The relevent part of my code as it was put out by the macro. The path has been edited.

    Please Login or Register  to view this content.
    The macro recorder captured where I manually typed in "export". At that spot I'd like to paste the clipboard contents.

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    03-08-2011
    Location
    Lubbock, TX, USA
    MS-Off Ver
    MS OFFICE 365 EXCEL, OUTLOOK, WORD, POWERPOINT
    Posts
    194

    Re: Clipboard contents in vba save as code

    Ha, I figured it out. It took some looking at several variants of one of the properties. But, here it is ... posted just in case someone else needs it. My filename is in R7 and is a concantenation of the name and employee number cells.

    Please Login or Register  to view this content.
    Doing the HappyDance

+ 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. [SOLVED] Pasting clipboard contents using VBA
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2015, 09:41 PM
  2. [SOLVED] Listbox Contents to Clipboard
    By mikegs1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2014, 07:56 PM
  3. Email contents of clipboard
    By verse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2009, 01:10 AM
  4. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 PM
  5. How to clear the clipboard contents in VBA
    By Wilbur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2006, 10:10 AM
  6. [SOLVED] Clear clipboard contents
    By Cordobes in forum Excel General
    Replies: 4
    Last Post: 11-21-2005, 10:45 PM
  7. [SOLVED] Keep contents in clipboard
    By Kenny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2005, 04:05 PM

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