Hello All,
I would like to know if this string can be modified to include Font name, size and alignment?
Any thoughts?Please Login or Register to view this content.
Regards,
John
Hello All,
I would like to know if this string can be modified to include Font name, size and alignment?
Any thoughts?Please Login or Register to view this content.
Regards,
John
Last edited by JJFletcher; 12-23-2021 at 09:42 AM.
This should work:
Please Login or Register to view this content.
Happy with my answer * Add Reputation.
If You are happy with solution, please use Thread tools and mark thread as SOLVED.
I created this based on the fact that you look to be changing the formatting of a workbook where the code does not reside, much the same as KOKO's code above:
Please Login or Register to view this content.
I thank you both KOKOSEK and CheeseSandwich,
Your contribution has had success, Mr Sandwich your solution has produced the desired results... Thanks so much
Regards,
John
Last edited by JJFletcher; 12-23-2021 at 09:43 AM. Reason: spelling
Hello Again,
I have an interesting question....
Because this code worked so well, can it also be used to clear the data in the destination Workbook / Worksheet?
Your thoughts,Please Login or Register to view this content.
Regards,
John
Yes, you was nearly there:
Please Login or Register to view this content.
Thanks Mr Sandwich,
This cleared the data but indicated an error stating Object Required
Trying yours now Mr SandwichPlease Login or Register to view this content.
Regards,
John
Mr Sandwich,
Yours worked perfect - Thanks so much
Regards,
John
The best way to look at this is:
wbDest is defined as workbook only (no sheets no ranges)
wsDest is defined as wbDest.Sheets("WorksheetName") - Notice how we have refrenced wbDest, this is now included in wsDest. (again no ranges)
You can now refer to the new workbook by wsDest.Range("A1") as the workbook and worksheet are contained within wsDest
Sorry if my description isnt great, i am not the best at explaining things
Hope this helps
Mr Sandwich,
Thanks so much...
Regards,
John
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks