Results 1 to 17 of 17

String and Value workbook reference

Threaded View

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    17

    String and Value workbook reference

    Instead of editing my Excel macro to change a string, I would like to edit another worksheet of the workbook and read the variable name from that information sheet into my macro.

    So if my macro contains a line;

    And Cells(1, i) <> "FLOWA2" _
    and on another run I want it to be "FLOWA3" , I enter FLOWA3 in an information worksheet 'Sheet1, cell A1'. How is it referenced in the macro???



    Similarly for a value. If my macro formula subtracts 1.23 as below

    ActiveCell.FormulaR1C1 = "=RC[-2]-1.23"
    I would like to be able to subtract 4.56 by entering that number in an information worksheet 'Sheet1, cell B1'


    Thanks,
    Jim
    Last edited by alansidman; 10-15-2013 at 07:50 PM. Reason: Code tags added

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 06-01-2013, 05:04 AM
  2. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  3. Replies: 2
    Last Post: 05-01-2009, 07:06 PM
  4. use a string to reference a sheet
    By AustinBrister in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2008, 02:00 PM
  5. Replies: 1
    Last Post: 02-03-2006, 12:00 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