Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-17-2023, 01:40 PM
Logit Logit is offline Error when moving (copying) a excel sheet to another workbook. Windows 10 Error when moving (copying) a excel sheet to another workbook. Office 2007
Expert
 
Join Date: Jan 2017
Posts: 587
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Again from my experience ... relating to the following line in your macro :

ActiveSheet.Copy Before:=Workbooks("tempalatecodal.xlsb").Sheets("u serform")

relating to : u serform

Assuming this is not a typographical error ... you desired to name the Sheet "Userform" but Excel rejected that because that name references an Excel object - a form. Then you utilized a space after the first letter because it changes the name to something Excel will accept ?

I've found Excel doesn't always accept names that include a space. Try adding an underscore ( _ ) to replace the space. Perhaps that will clear up your intermittent error issue.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
One veryhidden sheet, one hidden sheet and two visible sheets - how to saveas into .xlsm workbook kiwimtnbkr Excel Programming 4 06-26-2019 11:30 AM
Error when moving (copying) a excel sheet to another workbook. Copying a Sheet in a Workbook to Another with Destination-Need Values Instead of Formulas rsrasc Excel Programming 4 08-19-2018 04:00 PM
Error when moving (copying) a excel sheet to another workbook. Can a Data Source be one sheet in a multi-sheet Workbook nfotx Mail Merge 1 07-01-2015 12:55 AM
Error when moving (copying) a excel sheet to another workbook. Browse to a specific sheet in an excel workbook Sinister Excel 4 04-08-2014 05:53 PM
Range(Cell1,Cell2) Error on another workbook controlling some other workbook? tinfanide Excel Programming 1 02-09-2012 04:08 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft