+ Reply to Thread
Results 1 to 5 of 5

VBA Help - Save As with cell reference

  1. #1
    Registered User
    Join Date
    11-26-2017
    Location
    Sydney
    MS-Off Ver
    Latest
    Posts
    3

    VBA Help - Save As with cell reference

    Hi

    I have the following code to perform a certain task and then to save the file to a specific location as a normal excel file (not macro enabled).
    I am trying to save the file name as text from a specific cell on sheet1, cell C1.

    Only need help with the saving part, the rest works well.

    Please can you assist

    Thanks,
    Devin

    Please Login or Register  to view this content.
    Last edited by devink; 11-26-2017 at 09:46 PM.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: VBA Help - Save As with cell reference

    Devin, welcome to the forum. Please add Code Tags to your first post to comply with Forum Rule #03.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    Doesn't this do the same ?

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    11-26-2017
    Location
    Sydney
    MS-Off Ver
    Latest
    Posts
    3

    Re: VBA Help - Save As with cell reference

    Thanks for your reply. Have changed it to code.

    Still having 2 issues:
    1. If C1 is a date (currently =text(B1,"dd/mm/yy"), the file will not save as C1. If however I put it as "Test1", it will save.
    2. The file that it saves to the folder does not have all the information pasted. Only column A is copying and pasting correctly.
    3. How can I save the whole file as an excel workbook (not macro enabled) and not just the Upload tab as to keep track of daily information?
    I.e. entire workbook to be saved but the new file to open on the upload tab as that is that tab that goes into the system in its new format.

    (Note - originally recorded the macro and edited where I could. Hence the poorly written and lengthy code)

    Thanks again
    Devin

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,909

    Re: VBA Help - Save As with cell reference

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-26-2017
    Location
    Sydney
    MS-Off Ver
    Latest
    Posts
    3

    Re: VBA Help - Save As with cell reference

    Thanks mate.

+ 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. Save As new workbook using cell reference
    By Quint6778 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2016, 12:28 PM
  2. [SOLVED] save as with current filename plus cell reference text
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-14-2014, 10:00 AM
  3. Macro with cell reference as a name, but prompt for save location and save as csv
    By tomham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2012, 06:21 PM
  4. Code to save as using cell reference
    By TyeReece in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 12:20 PM
  5. Replies: 2
    Last Post: 11-25-2009, 02:41 AM
  6. Macros to save worksheet based on cell reference
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2009, 01:29 PM
  7. Save WB from reference found in cell D1 to specific folder
    By Annette in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2006, 12:35 PM

Tags for this Thread

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