VBA Shape size based on data in range of cells

Jacq78

New Member
Joined
Nov 16, 2018
Messages
5
I currently have static sized shapes, vba as follows:

If Not WorksheetFunction.IsNumber(ActiveWorkbook.Sheets("Configuration").Range("B25").Value) Then
CheckConfigItems = CheckConfigItems & "The Shape Size Value is Missing from the Configuration Sheet (Cell B25)" & vbCr & vbLf
Else
gShapeSize = ActiveWorkbook.Sheets("Configuration").Range("B25")
End If

How can I size the shapes based on a range of text in excel please? :confused:

Thank you
Jacq
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hello,

Could you please clarify your sentence :
size the shapes based on a range of text
...

Is it a matter of width - height ?

or

Is it an issue related to a mathematical correlation ?
 
Upvote 0
Hello,

Could you please clarify your sentence : ...

Is it a matter of width - height ?

or

Is it an issue related to a mathematical correlation ?


Thanks for replying!

I have a milestone chart with different shapes depicting different types of tasks, launches etc for a 12 month period - each type of task has a correlating shape - currently all shapes are the same size - I'd like to add VBA to increase the size of a task shape if the task is imminent or overdue - my plan was to add eg high, medium, low in the excel file & for the shape to be std size for low, larger for medium & larger again for high - hoping this makes sense & that you can help :)
 
Upvote 0

Forum statistics

Threads
1,215,834
Messages
6,127,164
Members
449,368
Latest member
JayHo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top