freddie mitchell
New Member
- Joined
- Apr 14, 2011
- Messages
- 43
Hello everyone and happy new year,
Quick question on VBA formatting.
I've got a code, pasted below, with an insert row function. The code works well, but one small issue is that the copyorigin section copies the format of cells above and below the inserted row. The cells above and below are, however, typically hyperlinked, meaning that the newly inserted row appears with a hyperlink. Is there a way to either set the format to a default setting? Or to copy the formatting of a specific cell that is formatted correctly?
Thank you for all your help,
You're all great!
Quick question on VBA formatting.
I've got a code, pasted below, with an insert row function. The code works well, but one small issue is that the copyorigin section copies the format of cells above and below the inserted row. The cells above and below are, however, typically hyperlinked, meaning that the newly inserted row appears with a hyperlink. Is there a way to either set the format to a default setting? Or to copy the formatting of a specific cell that is formatted correctly?
VBA Code:
.Rows(r).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrBelow
Thank you for all your help,
You're all great!