+ Reply to Thread
Results 1 to 3 of 3

Saving worksheet using a macro. Problem is that it is saving more rows than it needs to

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    NY
    MS-Off Ver
    Excel 2013
    Posts
    7

    Saving worksheet using a macro. Problem is that it is saving more rows than it needs to

    I have a macro that saves a sheet from my workbook. I also have another macro that needs to load that same sheet into another workbook. The problem I was having is that when I tried to load the sheet into the workbook I was getting an error that said "the sheet I am trying to load will not work with the current workbook." I tried to save the current workbook as file with macro enabled. That did not work. I did notice that when trying to save the worksheet I also got an error. I think the problem is with my worksheet. It appears that I have alot of unnessasry rows that have no data in them. All of the blank rows are at the end of the data. I have 1048576 rows. How can I tell excel that I do not need those other rows before saving? Thanks
    Last edited by Kammphoto; 05-04-2013 at 10:10 AM. Reason: Solved

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Saving worksheet using a macro. Problem is that it is saving more rows than it needs t

    Hi, Kammphoto,

    maybe share the code you use to save to have a look at?

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    NY
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Saving worksheet using a macro. Problem is that it is saving more rows than it needs t

    Thanks for the reply. I think I have figured it out. I ran a macro that sets the scroll area. That way when I save it it is only saving the rows with the data. Thanks again for the reply.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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