PC Review


Reply
Thread Tools Rate Thread

Cell to macro

 
 
eLaCiD
Guest
Posts: n/a
 
      27th Jul 2010
Hallo all

Is there a way content from cell (for example content of A1, A2, A3 and A4) put in macro :

Sub MakroN1()

ActiveSheet.Shapes.AddShape(msoShapeRectangle, A1, A2, A3, A4). _
Select
End Sub

In short, as you can see, intent is that cell contents through macro command draw a square.

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      27th Jul 2010
With no checking to make sure the values make sense:

Sub MakroN1()
with activesheet
.Shapes.AddShape(msoShapeRectangle, _
.range("A1").value, _
.range("A2").value, _
.range("A3").value, _
.range("A4").value).Select
end with
End Sub



On 07/27/2010 03:27, eLaCiD wrote:
> Hallo all
>
> Is there a way content from cell (for example content of A1, A2, A3 and A4) put in macro :
>
> Sub MakroN1()
>
> ActiveSheet.Shapes.AddShape(msoShapeRectangle, A1, A2, A3, A4). _
> Select
> End Sub
>
> In short, as you can see, intent is that cell contents through macro command draw a square.
>


--
Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'IF' Macro to insert cell contents to alternate cell if cell not e Gryndar Microsoft Excel Worksheet Functions 6 20th Dec 2008 05:02 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Microsoft Excel Worksheet Functions 2 10th Sep 2006 05:32 AM
using a cell value to control a counter inside a macro and displaying macro value ocset Microsoft Excel Worksheet Functions 0 9th Sep 2006 12:36 AM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Microsoft Excel Misc 1 8th Jul 2003 03:03 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Microsoft Excel Programming 1 8th Jul 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:15 PM.