Relative Content

Tag Archive for excelvbamacros

How to check if a cell contains a shape?

I want to check if a particular cell has a shape, eg. B7.
if it doesnt exist, make new shape at B7 (B7.top, B7.left).
if it exists, move X columns to the right and make new shape

Excal VBA – Can I declare a variable to be used in all functions?

I’m learning macros as I go, so I hope there is an obvious solution here. Google and Youtube doesn’t seem to help much!
I refer to a specific cell to be changed in a variety of functions, based on the users needs. Inside of each individual function, I have been using ‘Dim’ and ‘Set’ i.e.:

How to group an array of shapes

I am making a flow chart, where I want to group the entire flow chart for the user to move it around later if he/she wants.

Macro to open PDF file in Adobe Acrobat Pro

I have tried the below code to open pdf file in Adobe Acrobat Pro. It opens the file dialogue and allows me to select the pdf file. Once i select the pdf file it gives error ” THERE WAS AN ERROR OPENING THIS DOCUMENT. THE FILE CANNOT BE FOUND.” Any help would be great.