lorikgator
New Member
- Joined
- Aug 26, 2014
- Messages
- 25
All,
I've searched the interwebs and all signs seem to indicate that there's no way to remove the selection range on a hidden sheet if you copy and paste formatting only unless you activate the sheet, but I'm hoping maybe there's just some clever method I've missed. Here's what I'm doing:
I'm copying and pasting JUST the formatting (some base formatting and a fair amount of conditional formatting) to a user-entry portion of a sheet (from a hidden row that acts as my master row)
I'm doing this from a main dashboard page to the sheet that the user selects with a check box (checking the check box runs the code that does the copying)
My copy/paste combo is:
where iColLet is the last column I care about (varies from worksheet to worksheet)
It all works just as planned, but it leaves the paste range "selected" on the hidden worksheet.
Is there any way (I've tried copying and pasting a single cell after this to change the selection and Application.CutCopyMode = False which of course just deselects the copy range) to change the focus to just a single cell on the sheet where the action took place without having to activate it, select a single cell, then return to the dashboard page?
If that's not as clear as I think it is, let me know and I'll attempt to improve my explanation!
I've searched the interwebs and all signs seem to indicate that there's no way to remove the selection range on a hidden sheet if you copy and paste formatting only unless you activate the sheet, but I'm hoping maybe there's just some clever method I've missed. Here's what I'm doing:
I'm copying and pasting JUST the formatting (some base formatting and a fair amount of conditional formatting) to a user-entry portion of a sheet (from a hidden row that acts as my master row)
I'm doing this from a main dashboard page to the sheet that the user selects with a check box (checking the check box runs the code that does the copying)
My copy/paste combo is:
Code:
.Range("A6", iColLet & "6").Copy
.Range("A13", iColLet & "1012").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
It all works just as planned, but it leaves the paste range "selected" on the hidden worksheet.
Is there any way (I've tried copying and pasting a single cell after this to change the selection and Application.CutCopyMode = False which of course just deselects the copy range) to change the focus to just a single cell on the sheet where the action took place without having to activate it, select a single cell, then return to the dashboard page?
If that's not as clear as I think it is, let me know and I'll attempt to improve my explanation!