+ Reply to Thread
Results 1 to 3 of 3

Naming File Based on Variable

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2016
    Posts
    46

    Naming File Based on Variable

    Hello everybody.
    How can I change the name of the pdf I'm exporting based on a variable?
    If I type this code:

    Please Login or Register  to view this content.
    How can I change the "MONTH" for the corresponding month ("January", "March", etc)? I intend to get the month via an input box and throw it into a variable.
    Thank you, I appreciate any help!

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Naming File Based on Variable

    Hi. lucasar,

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    01-30-2014
    Location
    Brazil
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: Naming File Based on Variable

    Thank you HaHoBe!

+ 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] Declaring and naming a variable
    By ExcelAteMyHomework in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2012, 03:07 PM
  2. Folder naming + File naming
    By Frozt15 in forum Excel General
    Replies: 2
    Last Post: 07-23-2012, 04:52 AM
  3. [SOLVED] naming a file based on cell value?
    By nokia3650 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2006, 02:20 AM
  4. [SOLVED] Variable Naming Convention
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2006, 03:50 AM
  5. naming .xls file based on a cell in excel
    By lsu-i-like in forum Excel General
    Replies: 1
    Last Post: 06-24-2005, 04:44 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