+ Reply to Thread
Results 1 to 2 of 2

Getting a macro to use text in a worksheet

  1. #1
    Registered User
    Join Date
    10-29-2017
    Location
    Derby
    MS-Off Ver
    2011 for Mac
    Posts
    1

    Getting a macro to use text in a worksheet

    I have text being created in a cell by a formula, which forms a cell address.
    I then want to use that cell address created in the worksheet, in a macro.
    The macro code will use whatever cell address is created by that text.
    The text created by the cell address will change, depending on the outcome of the formula.
    What is the code necessary in the macro to pick up the text from the worksheet - Is that even possible?
    My Excel knowledge is high, but my VBA knowledge is limited.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Getting a macro to use text in a worksheet

    You should use a macro that either always refers to that cell or pass the contents of the cell as a parameter to your macro
    Please Login or Register  to view this content.
    Above just simple ways you can do it.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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] Macro Code To Copy Dates And Text To A New Worksheet
    By Sabrina68 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2016, 07:55 PM
  2. [SOLVED] Macro for Worksheet Name based on Text Contain in Cell
    By arpanpanchal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2015, 07:43 PM
  3. Excel Macro - replace text in a worksheet based on info in another worksheet
    By Kai-Ho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2015, 04:01 AM
  4. macro to move text from worksheet(2) to worksheet(1)
    By tghiotto in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-15-2014, 06:01 PM
  5. Run a macro in every cell that contains text in a worksheet
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2013, 10:02 AM
  6. Macro to pull cellls based on text into another worksheet
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2012, 06:48 AM
  7. Excel macro to format text boxes on worksheet
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-20-2010, 04:50 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