+ Reply to Thread
Results 1 to 7 of 7

There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

  1. #1
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    922

    There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    There are 2 objects which are on the same level in a line on this Macro. See below;


    "Cells.Interior.ColorIndex = xlNone"


    Here both "Cells" and "Interior" are Range Object Properties and they exist there succesively. It confused me.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    The Interior property of Cells returns an Interior Object.

    ColorIndex is a property of Interior.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    922

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    "ByVal Target As Excel.Range"

    Where it should be A Data Type "Excel.Range" is written. I don't get that. (See the example file named "selection change event")

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    Why should it be a data type?

    Also, what makes you think Excel.Range isn't a data type?

  5. #5
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    922

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    After "As" we define its data type. Don't we?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    And is not Excel.Range a data type?

  7. #7
    Forum Contributor
    Join Date
    01-16-2015
    Location
    Istanbul
    MS-Off Ver
    Office 365
    Posts
    922

    Re: There are 2 Properties succesively on a line on this Macro. Isn't it wrong?

    Thank you very much for help.

+ 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. What is wrong with this line?
    By Solberto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2015, 05:51 PM
  2. [SOLVED] Macro check as bringing wrong line through
    By aaaaaaiden in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2014, 06:11 AM
  3. (A level applied ICT):VBA Cell referencing, VLOOKUP and IF statements in one line
    By kelvin.l1994 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-02-2011, 12:35 PM
  4. [SOLVED] What is wrong with this line?
    By ChartsToBe in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-27-2006, 07:10 PM
  5. [SOLVED] [SOLVED] need to add colored horizontal line on chart to show cutoff level
    By CoachZ in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-28-2006, 08:40 PM
  6. Using macro to convert single level BOM to Multi Level BOM
    By andrew_chong in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2006, 04:57 PM
  7. [SOLVED] change the default setting of the line of objects. .75 to 2.
    By Tom Pag in forum Excel General
    Replies: 0
    Last Post: 12-19-2005, 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