+ Reply to Thread
Results 1 to 3 of 3

Help incorporating sheet name (which is a number) into a very basic maths equation

  1. #1
    Registered User
    Join Date
    05-05-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    68

    Question Help incorporating sheet name (which is a number) into a very basic maths equation

    Hello

    I have set up my work book so that the sheet names are number, I wish to do some basic maths where upon the sheet names (which are numbers) are incorporated in some basic calculations.

    My knowledge of excel is fairly basic however I have roughed out a concept map below of what I would like to achieve.

    I suspect that I may need to Dim the sheet names (under the sheet heading) as integers or some other term to let excel know that these values are numbers.

    The reason behind my attempt to write this code is to use the active sheet name to reference a cell location on a work sheet called "Index". This piece of code will be replicated on a number of different sheets.

    For the sake of this post lets just say I wish to set the cell location to TRUE.

    For the sake of this post lets say the Sheet name is currently "1"

    The mathematical relationship is that if you take the active sheet name and add this value to itself, then add a 1 to this value this will be the row number to be referenced.

    Please Login or Register  to view this content.
    Any assistance is greatly appreciated, in the past I have been highly impressed and very thankful with the assistance I have received on this forum.

    Regards,

    Michael Surace.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Help incorporating sheet name (which is a number) into a very basic maths equation

    Try two minor corrections - one is using val of sheet name.
    Second is - sheets collection (sheets("Index"))

    Please Login or Register  to view this content.
    or even
    Please Login or Register  to view this content.
    and the rest

    or:
    Please Login or Register  to view this content.
    and the rest
    Last edited by Kaper; 03-27-2014 at 05:25 AM.
    Best Regards,

    Kaper

  3. #3
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Help incorporating sheet name (which is a number) into a very basic maths equation

    Please Login or Register  to view this content.
    Click on the star if you think I helped 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. copy maths equation from one sheeet to other sheet
    By newmake in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-28-2014, 09:46 AM
  2. Visual basic in excel 2010. Problem with equation programming
    By madagaskaras in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 07:44 AM
  3. Creating a basic loop to solve an equation multiple times
    By MechEng84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2009, 09:26 PM
  4. [SOLVED] [SOLVED] How do I define and solve a maths equation using excel?
    By excel nub in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-09-2005, 07:05 AM
  5. VBA Basic Maths Problems
    By DaveUK in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2005, 09:52 PM

Tags for this Thread

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