troubleshooting Question

xlFileFormat for Excel 2007

Avatar of JamesCbury
JamesCburyFlag for United States of America asked on
Microsoft OfficeVisual Basic ClassicMicrosoft Excel
7 Comments1 Solution1049 ViewsLast Modified:
Hi Experts, I have some code that creates a new workbook then copies a tab from my existing "Master" workbook to the new one and deletes all of the blank default tabs (my ideal solution would be to just use the same functionality as copy tab --> new workbook, but I can't seem to record that)...  I keep running into a problem that my new workbook is always created with 65500 rows, but my template is in the excel 2007 format (even though I only have about 50 rows populated) I get the error that I cannot paste the sheet because the sizes are different.  I've been trying FileFormat:= 51

Any thoughts?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros