+ Reply to Thread
Results 1 to 13 of 13

Have error in Save macro - HELP!!

  1. #1
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Have error in Save macro - HELP!!

    hi all,

    i have this Save macro which im using with data mapping

    Please Login or Register  to view this content.
    and when ever i run the macro i get an error on the following line

    Please Login or Register  to view this content.
    the
    Please Login or Register  to view this content.
    is supposed to be when the cell row is supposed to start which in this case is row 11, which is correct.

    i just cant understand why, i was sure i did everything right....obviously not!!!!
    Attached Files Attached Files

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Have error in Save macro - HELP!!

    Is it not
    Please Login or Register  to view this content.
    or have I totally misunderstood

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Have error in Save macro - HELP!!

    Just remove Range object from the following line

    Please Login or Register  to view this content.
    To

    Please Login or Register  to view this content.
    Let me know if this works.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: Have error in Save macro - HELP!!

    no because its look for the Range starting in C11

    this is where im getting all this from

    https://www.youtube.com/watch?v=SnA3cct-2IM&t=3616s

  5. #5
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: Have error in Save macro - HELP!!

    im also having issues with the delete macro as well but ill probably need to start a new thread for that one

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Have error in Save macro - HELP!!

    Quote Originally Posted by Learning ExL View Post
    no because its look for the Range starting in C11

    this is where im getting all this from

    https://www.youtube.com/watch?v=SnA3cct-2IM&t=3616s
    Have you tried the solution provided by me?

    Removing Range Object from your bug line
    Please Login or Register  to view this content.

  7. #7
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Have error in Save macro - HELP!!

    What are you trying to do? Add the new contact info from row 6 to the next available row? ie 23 of to insert row 6 at row 11?

  8. #8
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: Have error in Save macro - HELP!!

    this code looks at the range and insert the new contact into the next available empty row at the end of the range.

    did you look at the workbook and the video at all?

  9. #9
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Have error in Save macro - HELP!!

    Hi Learning ExL,

    Can you be more specific about your requirement? As asked by @Nigelog already. As per your code, the record you have on 11th row, is going to be repeated in the next available row everytime you run the code.

  10. #10
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: Have error in Save macro - HELP!!

    ive answered the question i have explained what i need and what is wrong, ive also provided the file and the link to the video, putting all that together explains 100% of what im trying to achieve, i dont know what else to say or do.

  11. #11
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Have error in Save macro - HELP!!

    Well I hope you find your solution

  12. #12
    Forum Contributor
    Join Date
    03-30-2015
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    275

    Re: Have error in Save macro - HELP!!

    sorted it all working

  13. #13
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Have error in Save macro - HELP!!

    No Problem, glad to 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. [SOLVED] Error with Save As PDF macro in Mac but not in Windows
    By gazellette in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2016, 12:06 PM
  2. Error with VBA on and auto save macro
    By DZ217 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-08-2015, 02:49 PM
  3. [SOLVED] Run-time error 1004/Save file macro
    By egglee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2013, 06:22 AM
  4. Error with macro to save and send excel as pdf
    By Axildoofay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 05:23 AM
  5. [SOLVED] Run time error during workbook save in macro
    By t3623gl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2012, 10:19 AM
  6. Macro to save worksheet giving error
    By strder1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2012, 09:52 PM
  7. Save macro validation: if error got to cell a1?
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2009, 03:24 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