+ Reply to Thread
Results 1 to 4 of 4

Adding Cell value and a Value from name manager Range

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Adding Cell value and a Value from name manager Range

    hello all,

    In my code on Sheet2 I have
    Please Login or Register  to view this content.
    • A is defined as Sheet1's Range("C12") . I defined this by adding it in the name manager


    What I need : Cells(7, 8).Value = to be adding increment_value with Cells(6,8) value


    Code I tried :
    Please Login or Register  to view this content.
    also tried

    Please Login or Register  to view this content.
    Error I am getting :
    Run-time error '13' :
    Type Mismatch


    What Different things I tried :
    • I changed initializing increment_value as long, single and integer and it didn't work


    Any help is much appreciated.

    Thanks in advance
    Last edited by subbby; 11-05-2018 at 06:05 PM. Reason: Solved

  2. #2
    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,412

    Re: Adding Cell value and a Value from name manager Range

    See the code below ... you need the Range().Value

    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


  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Adding Cell value and a Value from name manager Range

    Quote Originally Posted by TMS View Post
    See the code below ... you need the Range().Value
    Thank you very much. I understood what mistake I made.

    To make it work to what I needed i changed this from your code
    Please Login or Register  to view this content.
    to the following

    Please Login or Register  to view this content.
    I got the hint from this line in your code
    Please Login or Register  to view this content.
    It worked like a charm. Really appreciate your time.

    Thanks again

  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,412

    Re: Adding Cell value and a Value from name manager Range

    You're welcome. Thanks for the rep.

+ 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] Named Range- 'refers to' defined in a cell instead of in the Name Manager
    By MycroftHolmes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2017, 10:18 AM
  2. sales manager & purchase manager sheets command button error
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-24-2016, 07:26 AM
  3. [SOLVED] Range with variable from Name Manager
    By Imbizile in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2015, 10:42 AM
  4. [SOLVED] Print Range using Name Manager VBA
    By shiser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2014, 09:11 AM
  5. Range defined for a name in Name Manager is keep changing
    By maruthi_ravi in forum Excel General
    Replies: 6
    Last Post: 09-29-2013, 12:50 PM
  6. Use last cell used in name range manager
    By jaslake in forum Excel General
    Replies: 3
    Last Post: 05-10-2009, 09:20 PM
  7. [SOLVED] Adding report manager to my toolbar
    By rpc1040 in forum Excel General
    Replies: 0
    Last Post: 03-14-2005, 07:06 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