+ Reply to Thread
Results 1 to 2 of 2

Formula using variables

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    Christchurch, New Zealand
    MS-Off Ver
    Office 365
    Posts
    24

    Formula using variables

    Hi all, I have a macro that I am trying to work on. The intent of the macro is to check the value on the active sheet against a number selected by the user. The majority is a copy and past, and the two lines around fRow were from help on this forum, with a modification to now use rng as a variable defined by the selction. I do not know how to get this to work. Any thoughts?
    Please Login or Register  to view this content.
    The reason for using a select tool is because the location varies. Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Formula using variables

    Try this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] How to equate array variables to other array variables in a formula
    By Geode7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-13-2019, 04:45 AM
  2. [SOLVED] [Windows Environment Variables] Change user variables using VBA
    By alexgoaga in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2018, 09:06 PM
  3. Storing variables as string or as variables in array performance
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2017, 08:35 AM
  4. [SOLVED] finding an output from 5 variables in an array using exterior input user variables
    By Allsort in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 11:16 AM
  5. Replies: 3
    Last Post: 09-11-2012, 02:03 AM
  6. macro that finds variables in one column and enters values if variables found
    By xln00b in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2010, 08:22 AM
  7. Unzip Code - Works without Variables, Breaks with Variables...
    By AdamParker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2009, 02:35 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