+ Reply to Thread
Results 1 to 6 of 6

Copy Cell Value to VBA

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Charleston
    MS-Off Ver
    2016
    Posts
    21

    Copy Cell Value to VBA

    I have several references to a specific path in my code. For example:

    Please Login or Register  to view this content.
    This path is different on different computers. I have a "Setup" sheet where the workbook parameters are entered. I want to enter a path on A7 of Setup that my code will forever refer to. Can this be done?
    Last edited by dwool40; 05-18-2022 at 07:01 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-03-2022
    Location
    Halifax,Canada
    MS-Off Ver
    365
    Posts
    326

    Re: Copy Cell Value to VBA

    Please Login or Register  to view this content.
    https://wellsr.com/vba/2016/excel/vb...gFolderPicker/
    Last edited by nimrod1313; 05-17-2022 at 04:39 PM.

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    Charleston
    MS-Off Ver
    2016
    Posts
    21

    Re: Copy Cell Value to VBA

    That ran but my code didn't.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Copy Cell Value to VBA

    Maybe start with
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    02-04-2019
    Location
    Charleston
    MS-Off Ver
    2016
    Posts
    21

    Re: Copy Cell Value to VBA

    Quote Originally Posted by TMS View Post
    Maybe start with
    Please Login or Register  to view this content.
    Trevor - you are AWESOME!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Copy Cell Value to VBA

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 5
    Last Post: 06-14-2020, 08:18 AM
  2. Copy text to cell, but if targeted cell is full, copy to next one
    By Marpik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2020, 12:02 PM
  3. Copy text to cell, but if targeted cell is full, copy to next one
    By Marpik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2020, 04:20 AM
  4. vba to copy certain elements in cell comments & copy to offset cell in same row
    By sureng20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2017, 11:03 PM
  5. vba to copy and insert row and copy/paste cell value if cell not blank!
    By GaryDML in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 02:17 AM
  6. [SOLVED] How to copy data in a cell in Sheet1 to a cell in Sheet2 using =COPY( )?
    By Mr D Relf in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-17-2013, 10:39 AM
  7. copy a specif cell value, find another like that in sheet copy adjacent cell and pate
    By smwaqas89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2013, 10:00 AM

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