+ Reply to Thread
Results 1 to 3 of 3

looking for out of the box solution

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    canada
    MS-Off Ver
    Excel 2007
    Posts
    96

    looking for out of the box solution

    I have range in excel which I name it “Mike” (A2:A6) , in that range I several lines as follow:
    Sheets("B").Range("a2").Select

    PHP Code: 
    Range("H15").Value Sheets("D").Range("B2").Value
    Range
    ("H16").Value "3Yr"
    Range("H17").Value Sheets("D").Range("C5").Value
    Range
    ("H18").Value "3 Year Average Efficiency"
    Range("H20").Value "3Yr" 
    I would like to know if this range & those lines can be executed via VBA, by the name rage mentioned. Moreover, those lines are basically part of macro which I hope I can place then in a sheet and not in a module, I know that in lotus you can write your macro in a range on a sheet name that range , and then activate that macro by calling the name of you have it to be executed , by click button , is that option existed also in VBA and excel (p.s.- I place here the original code in VBA)

    Please Login or Register  to view this content.
    Giving the fact I am newer to VBA my question does not sound too stupid, and any help will be appreciated

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: looking for out of the box solution

    Please Login or Register  to view this content.
    Code needs to go in the VBA Editor, it is not like Lotus where the macro code was on the spreadsheet.

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: looking for out of the box solution

    One note. If you want the values to be linked and update when you update them on sheet D then you can modify Dave's code as follows
    Please Login or Register  to view this content.
    The D! could be replaced by any sheet name.

+ 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. Is 'ranking by' a VBA solution or a manual solution?
    By mtw2018 in forum Excel General
    Replies: 2
    Last Post: 04-10-2012, 01:47 PM
  2. Solution ?
    By Borg-cy in forum Excel General
    Replies: 1
    Last Post: 11-11-2009, 10:57 AM
  3. I want a better solution
    By McManCSU in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2006, 10:38 AM
  4. Is there a solution?
    By Twisty20 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2006, 09:43 AM
  5. [SOLVED] There must be some solution
    By Peter Ostermann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2005, 09:06 AM

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