+ Reply to Thread
Results 1 to 7 of 7

Trying to copy cells between workbooks, some dim/objects seem to be wrong

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013 for Windows, Office 365 for Mac
    Posts
    6

    Trying to copy cells between workbooks, some dim/objects seem to be wrong

    Hi
    I am writing an excel function in VBA that is supposed to pick data from certain cells in the same row, save them, enter them in another worksheet and then return the value of one cell from that second worksheet as "function value".
    I so far wrote this:
    Please Login or Register  to view this content.
    And says it "object doesn't support this property or method.
    Now I wonder: did i do anything generally wrong?
    Thank you very much, Philipp
    *Edit: I hope the layout change is was correct - it's my first post in this forum -> i didn't know about the rules yet.
    Last edited by ExcellentName; 05-25-2016 at 07:42 AM. Reason: Thread did not fulfill forum rules

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Something is wrong

    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



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Something is wrong

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Registered User
    Join Date
    05-25-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013 for Windows, Office 365 for Mac
    Posts
    6

    Re: Trying to copy cells between workbooks, some dim/objects seem to be wrong

    Is everything correct now ?- I guess this reply is what is meant by respond to the request to change title.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Trying to copy cells between workbooks, some dim/objects seem to be wrong

    Go step by step and check in what line it returns error

  6. #6
    Registered User
    Join Date
    05-25-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013 for Windows, Office 365 for Mac
    Posts
    6

    Re: Trying to copy cells between workbooks, some dim/objects seem to be wrong

    Hi zbor, thanks for your answer.
    Sadly it doesn't tell me where the error is - for another one it did.

    Please Login or Register  to view this content.
    I changed some dim types but now it prints out runtime error 13: "type conflict"..again without a line

  7. #7
    Registered User
    Join Date
    05-25-2016
    Location
    Munich, Germany
    MS-Off Ver
    Office 2013 for Windows, Office 365 for Mac
    Posts
    6

    Re: Trying to copy cells between workbooks, some dim/objects seem to be wrong

    I changed to code again, so i dont need the Range object any more - but still it reports that there is a type mismatch in line 1:
    Please Login or Register  to view this content.
    I didn't find any misspelled workbook/worksheet names. Anything else that you think might be wrong?
    Is my function currently enabling the Cell it is entered in to show the "Range" value?
    Does a function to be entered in cells automatically select the cell it is written in as activeCell?
    Thanks PB
    Last edited by ExcellentName; 05-30-2016 at 05:38 AM.

+ 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. wrong macro? doing something wrong?
    By weatherguard in forum Excel General
    Replies: 1
    Last Post: 03-04-2016, 06:30 PM
  2. Wrong coding or RANDBETWEEN is wrong?
    By zbor in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-31-2013, 10:01 AM
  3. [SOLVED] What's that wrong?
    By Cactus in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 04:35 AM
  4. Getting wrong value due to ref?
    By jesmin in forum Excel General
    Replies: 2
    Last Post: 03-15-2006, 10:12 PM
  5. please tell me what was wrong
    By lalaexcel in forum Excel General
    Replies: 3
    Last Post: 01-29-2006, 10:20 AM
  6. What am I doing wrong....!!!
    By squoggy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2005, 01:05 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