I have tried to write code to email those sheets that are in Col A o sheet "Macro"
It would be appreciated if someone can help me resolve this
![]()
Please Login or Register to view this content.
I have tried to write code to email those sheets that are in Col A o sheet "Macro"
It would be appreciated if someone can help me resolve this
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Good Luck...
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
Hi Sintek
Thanks for the help. I have made the necessary changes. When running the macro , I now het run time error 1004 and the code below is highlighted
[codde].SaveAs Filename:=File, FileFormat:=51 [/code]
Kind Test & advise
![]()
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
I don't get it...This file has nothing to do with your initial request...
And no such code exists...
If you are referring to your first upload then the code errors as there is no reference to your variable "File"....![]()
Please Login or Register to view this content.
So incorporate something like this...
![]()
Please Login or Register to view this content.
Last edited by Sintek; 04-26-2020 at 03:14 AM.
Hi Sintek
Thanks for the help, code works perfectly
I have formulas in A onwards to only show sheets where there are variances and those with no variance as shown as a blank
I there a way to increase the range of the array so that when there is a variance on another sheet , that sheet will also be included on the attachment ?
If so, please amend code
I tried to increase the range, where cell A5 is displaying blank , but get a run time error
![]()
Please Login or Register to view this content.
Thanks for your help, Bakerman2
Howard...I'm confused...What file are you referring to...
Seems you have two individual requirements | 2 individual files running same thread
Cannot refer to a sheet if there is no name allocated to it...I tried to increase the range, where cell A5 is displaying blank , but get a run time error
Last edited by Sintek; 04-26-2020 at 05:57 AM.
Sinek, sorry for any confusion caused
I amended my sample file slightly , as I would like the array range to increase as the range increases in Col A with the sheetnames-see attached sample data
Amend code to Incorporate...
![]()
Please Login or Register to view this content.
Hi Sintek
This is brilliant. Works like a charm
Thanks very much for your help once again
..........................
Image 1.gif
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks