plse correct the above codeColumns("A:B").Select Selection.Copy if sheet9 exists then sheet9.clear else Sheets.Add After:=Worksheets(ActiveSheet.Name) ActiveSheet.Name = "sheet9" end if ActiveSheet.Paste
plse correct the above codeColumns("A:B").Select Selection.Copy if sheet9 exists then sheet9.clear else Sheets.Add After:=Worksheets(ActiveSheet.Name) ActiveSheet.Name = "sheet9" end if ActiveSheet.Paste
Columns("A:B").Copy On Error Resume Next Set sh = Worksheets("Sheet9") On Error GFoto 0 If Not sh Is Nothing Then sh.UsedRange.ClearContents Else Set sh = Sheets.Add(After:=ActiveSheet.Name) sh.Name = "Sheet9" End If ActiveSheet.Paste
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Change the typo in the lineand run the code againOn Error GFoto 0
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link
Syntax error
Yes. Have a good look at the syntax. There is a simple typo error there.
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link
sloved
For your reference, kindly go to the Thread Tools drop down and mark the thread as solved from there.
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link
Sub M_snb() On Error Resume Next Worksheets("Sheet9").UsedRange.ClearContents if err.number <>0 then sheets.add.name="Sheet9" End Sub
Interesting.... The OP is obviously frustrated with our help and posted elsewhere. When you look at the information posted here it's hard to see how we can do more given that "the above code isn't working" could mean anything.
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link
excelforum notified
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ
Interestingly. Chrome is blocking access to ExcelForum for me. ESET has long told me that ExcelForum is suspect when I follow a Google search that links there, but I always went there anyway. But this is more dramatic.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Seems the OP is getting the same type of answer there Bob.
Remember To Do the Following....
Use [Code].... [/Code] tags when posting code to the thread.
Mark your thread as Solved if satisfied by using the Thread Tools options.
If posting the same issue to another forum please show the link
Chrome is blocking me also when I try to access excelforum. It says malware.
Anyone knows what the problem is?
It appears to be fixed now.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber