JohnnyTightlips
Board Regular
- Joined
- Aug 13, 2006
- Messages
- 94
Folks,
I'm not a VBA person, so i put the following scenario to the board for an answer. (I can't install the HTML maker sorry)
I have a range of cells: "FTE Range" If an individual cell within that range is populated with a number I would like to insert (or copy) an AutoShape into that cell (basically gives it a pretty border) To further help I include the code that I have attempted. (VBA gurus please don't laugh - I have pieced my knowledge from Help Files, Google and recording myself manually copying the shape to a populated cell! :wink: )
There is a shape on the sheet called "Autoshape 4". When I manually recorded the Macro it referred to that shape
At the moment, the routine runs but nothing happens
Thanks in advance
I'm not a VBA person, so i put the following scenario to the board for an answer. (I can't install the HTML maker sorry)
I have a range of cells: "FTE Range" If an individual cell within that range is populated with a number I would like to insert (or copy) an AutoShape into that cell (basically gives it a pretty border) To further help I include the code that I have attempted. (VBA gurus please don't laugh - I have pieced my knowledge from Help Files, Google and recording myself manually copying the shape to a populated cell! :wink: )
Code:
Sub ShapePopulate()
For Each Cell In Range("FTERange")
ActiveSheet.Shapes("AutoShape 4").Copy
If Value <> 0 Then ActiveSheet.Shapes("AutoShape 4").Paste
Next Cell
End Sub
There is a shape on the sheet called "Autoshape 4". When I manually recorded the Macro it referred to that shape
At the moment, the routine runs but nothing happens
Thanks in advance