+ Reply to Thread
Results 1 to 8 of 8

Save as dispay populte by cell value

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Save as dispay populte by cell value

    Hi there,

    I have a question, there is something wrong in my code but i can't find what. when I try to save a file, the save as display is opened in the right folder but the desired file name is not filled, can someone maybe take a look?

    What's going wrong, my wish is that the saveFileName is loaded in the display text window.

    below my code:

    Please Login or Register  to view this content.
    greetings remco

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Save as dispay populte by cell value

    Hi there,

    I have sometimes experienced problems like this and work around them by "actively" switching to the folder in which I wish to save the workbook before displaying the "Save As" dialogbox, and then switching back to the original current folder immediately afterwards.

    See if the following code does what you need:

    Please Login or Register  to view this content.
    The highlighted value may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Re: Save as dispay populte by cell value

    Hi Greg,

    Thank you for your fast replay, your code works, when I put it in a new clean excel file, when I run this code in my current file, it doesn't work. I don't understand why this is happening. when I copy my data after the new file, the macro also doesn't work properly anymore. the folder location is opened, but the file name consisting of the cell information is not displayed. Unfortunately I can't put the file online because it contains company data...

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Save as dispay populte by cell value

    Hi again,

    Thanks for your feedback.

    Can you at least post the contents of Cells H5, B5 and B6? Maybe those cells contain characters that may not be used in a filename?

    Regards,

    Greg M

  5. #5
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Re: Save as dispay populte by cell value

    Hi,

    The information is correct in H5, B5 and B6 with a standard format, the input is letters. I don't think this should be a problem, but I'll do some research and let you know

    greetings,

    remco

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Save as dispay populte by cell value

    Ok, please keep us informed.

    Greg M

  7. #7
    Registered User
    Join Date
    01-08-2020
    Location
    amsterdam
    MS-Off Ver
    2010
    Posts
    45

    Re: Save as dispay populte by cell value

    Gooddag Greg,

    I still don't know what exactly went wrong, but I did find the solution. I copied empty cells from a blaco documnet and pasted them into the cells of H5, B5 and B6 and now the macro works properly.
    keep finding it strange but luckily it's solved, thanks for thinking along and your comment about the cell formatting has made me think.

    very thoughtful!

    Remco

  8. #8
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Save as dispay populte by cell value

    Hi again,

    Many thanks for that feedback.

    Well done - delighted to hear that it's working correctly for you now.

    Regards,

    Greg M

+ 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. Colour to dispay based on the list of value selected in 2 column
    By chakkaravarthy.m in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2019, 11:45 PM
  2. more than 11 digits dont dispay in listbox column
    By biznez1 in forum Excel General
    Replies: 2
    Last Post: 07-30-2013, 11:53 AM
  3. Picture from internet does not dispay in excel sheet
    By jack72 in forum Excel General
    Replies: 1
    Last Post: 04-21-2013, 09:08 PM
  4. auto populte yr planner
    By megabytecomput in forum Excel General
    Replies: 0
    Last Post: 06-22-2008, 04:48 AM
  5. match data and then dispay result in a form
    By RandyGidcumb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2007, 04:35 AM
  6. [SOLVED] Dispay Ratio
    By Joe in forum Excel General
    Replies: 1
    Last Post: 07-03-2006, 05:50 PM
  7. [SOLVED] DDE real time and time dispay conflict
    By Ed Leshik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 10:06 AM

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