+ Reply to Thread
Results 1 to 4 of 4

Syntax of integer object in relative column position

  1. #1
    Registered User
    Join Date
    08-13-2013
    Location
    France, Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    2

    Syntax of integer object in relative column position

    Hy everybody,

    I get the error 1004 : application-defined or object-defined error

    my script is :

    ...
    Dim i As Integer
    Dim x As Integer
    i=1
    x=i+9
    ...

    ActiveCell.FormulaR1C1 = "=COUNTIFS(C[x] ,""=""&R2C8,C[11],""<>0"")"

    ...








    C[11] is accepted but not the C[x] even though x has been defined as integer...

    Someone to help me ?

    Thankx

    Daniel

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Syntax of integer object in relative column position

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

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

    Can you post the formula you are trying to enter?

    PS When posting code pleasr use code tags.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    08-13-2013
    Location
    France, Toulouse
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Syntax of integer object in relative column position

    Ok sorry,

    Let see :

    Please Login or Register  to view this content.

+ 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. Replies: 3
    Last Post: 11-24-2012, 05:52 AM
  2. [SOLVED] Syntax for Creating an Integer List
    By publius190 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2012, 10:58 AM
  3. Lookup a value, and SUM relative to that value position
    By gtichauer in forum Excel General
    Replies: 2
    Last Post: 01-17-2012, 04:44 PM
  4. Syntax to Paste a VBA Integer?
    By Strife in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2011, 08:58 PM
  5. Selecting a row relative to the position of a button
    By HHall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2005, 08:05 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