How does one stop the Delete method from deleting the cells formatting too.
When I use
rng.Hyperlinks(1).Delete
it deletes the cell formatting along with the cells conditional formatting.
Is this by design?
If you're getting rid of all the hyperlinks, you can use rng.clearhyperlinks and the formatting should persist.
FWIW, although I don't know for sure, I suspect the issue is that adding a hyperlink applies the Hyperlink style to the cell and someone thought it would be a good idea to clear the formatting when the link was deleted. Just wasn't fully, or well, implemented!
Related
Excel
The input cells are marked with colour upon inserting a formula. But upon selecting formulas, the cells are not dispayed/marked, and this makes the spreadsheet less readable and thereby reduce my workflow.
The problem has been presented here too, but without any proper answer/solution:
https://superuser.com/questions/1228416/cells-referenced-in-formula-not-displaying
Inserting a formula
Selecting a cell with a formula
I did as explained by others in the link provided, but they didn't help unfortunately.
PS. I do have macros enabled, and work with them a bit. But nothing that should turn on/off such functions...
Unfortunately, I didn't manage to identify what caused the problem, and neither the solution.
I ran my macro a couple of times, and it suddenly worked. I don't even remember if it was at the first run.
Sorry guys, for you others might looking for the same solution as I did...
The macros were only making some formulas and autofill them for specific ranges...
I have a worksheet with conditional formatting. I need to remove the conditional formulas, but when I do and they are gone, I save the sheet, exit, and re-load the sheet. When I check, the formulas are back. How can I get rid of them permanently?
I think you are removing rules from some selected cells. You can remove conditional formatting rules from entire sheet. See below screenshot.
I have tried to find this scenario somewhere but haven't been able to find any useful resources.
Essentially, I have performed some work in Excel and upon returning to the file the row sizes were so large the file could not used properly, and the cells were blank. The row sizes was an easy fix, however the blank cells are strange because they still contain text/formulae.
Has anyone seen this issue before, and know how to fix it?
Thanks!!!!
In this image, you can see that the selected sell contains some text
Here, if I double click to edit the cell contents, there seems to be some kind of disconnect between the location of the cell, and where Excel is allowing me to edit the text
I think you should start working with "formulatext()" Excel function: if you have a formula, this returns a full string
I've seen issues like this in the past and have always first tried the "Text to Columns" Data Tool on the Data Menu. I have used this when cells are unexpectedly blank, or when my dates are registering as dates or formulas are registering as formulas. It might help.
Whenever I copy or move a cell in excel, the original cell location changes colour, how can I stop this?
I have tried clearing the format but it doesn't seem to help... and it only occurs in the main area that I am working in (i.e. if I scroll off to the side or bottom it doesn't seem to happen).
Anyone have any ideas? It's quite annoying.
Conditional Formatting should do the trick. Highlight the cells that concern you and use the option if Cell contains value... then select blank. The format should be auto background (or whatever color you would like)
You may find a custom format already there causing the issue. If so just delete it and you should be all set.
I ran into a peculiar behavior today that I need help with. I have a range(A2:C3) that I'm using conditional formatting to hide based on a yes/no dropdown (A1). It basically sets font/border/and bg color to white. There's a cell with a hyperlink (A3) to clear the contents of the range (A2:C3) which should be included when the range formatting is changed.
It works well until you click the link, then it isn't included with the range for conditional formatting for some reason. Any ideas on a solution to get followed hyperlinks to behave as new hyperlinks? I'd like to keep everything within the conditional formatting scheme to save myself a heap of work but if VBA is needed that's fine. Thanks!
Select the column, row or cells.
Format Cells
Uncheck normal font.
:)
This deselects auto formating for things like hyper links.