Excel vba experts please help!!!

[zhugong]

Member
Joined
Apr 7, 2015
Messages
285
Reaction score
0
Im using excel 2013..
1) i insert a shape (say a line) at cell A1..
2) cell b1-b13 will be red will A1 is a line
3) i wan to click it and it will change to a square
4) A2 will also follow A1..
5) after clicking line to change to square, cell b1-b13 will change colour from red to black
6) when click on the square again, it will change back from square to line
7) cell b1-b13 will change from black to red also

Anyone knows how to write?
 

ChadHogan

Junior Member
Joined
Jan 3, 2015
Messages
11
Reaction score
0
You should record the Macro first with the Excel In-Built Tools. After doing the manual process you can extract your needed codelines from the recorded Macro. Of course, you will need to do it more dynamic but it often helps to get the specific syntax for special operations like drawing, diagrams, etc..
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top