+ Reply to Thread
Results 1 to 4 of 4

VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!

    Hi everyone, I'm very new to VBA and I have some code from a former employee but I need help fixing.
    I'm trying to do the following with VBA Code.

    1. Data will be entered into a row in a file that has been opened (Problem Tracking.xls)
    2. A macro button will be clicked
    3. The Macro will ask what row to copy data and the person will input the row number
    4. Copy the selected columns in the row
    5. open a file called "Supplier SQD Master.xls" and input the data into the cells.
    6. Create A folder in Path F:\Copy Test\2015 SQD\Issued using Cell G4 and C5
    7. Save the file as G4 and C5 to the created folder but remain open
    8. Create a hyperlink in the Problem tracking.xls in Column "R" and the row selected from the input box.

    I have it working up to item 6 but I can't seem to figure out how to save the file into the created folder and create a hyperlink into Problem Tracking.



    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!

    for #7
    Please Login or Register  to view this content.
    For #8
    i'm confused about what workbook relates to what in your code but the syntax would be
    something like this

    Please Login or Register  to view this content.
    replace "hyperlink" with whatever you want to be shown as the link
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-16-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!

    thank you Humdingaling,

    #8.
    Once the SQD master is saved to the folder. I want to switch back to the open Problem Tracking.xls and create a hyperlink in column R of the selected row that the SQD master was saved to.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA To Create Folder Based on Cell Value and Save File as Same Cell Value...HELP!

    in that case just make your problem tracking WB (and sheet) the activesheet before the line of code i gave you for #8

+ 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. Create new folder and subfolder and save file with the names from cell values
    By eccordeiro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2015, 10:03 AM
  2. [SOLVED] VBA: Create a new folder on any users desktop and save the file as value in cell (A51)
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2014, 11:02 PM
  3. Replies: 1
    Last Post: 01-10-2013, 08:22 AM
  4. Replies: 5
    Last Post: 09-13-2012, 09:49 AM
  5. Replies: 1
    Last Post: 09-12-2012, 11:29 AM
  6. [SOLVED] Create a new folder based on a cell name or value and save copy onto that folder
    By Le_Tiago in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-20-2012, 01:33 PM
  7. Macro to save duplicate file and create folder name based on cell value
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2012, 12:09 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