# Macros.... multiple nodes.... as opposed to SUBFLOWS

**URL:** https://discourse.nodered.org/t/macros-multiple-nodes-as-opposed-to-subflows/51858
**Category:** General
**Created:** [4 October 2021 21:24 UTC](https://discourse.nodered.org/t/macros-multiple-nodes-as-opposed-to-subflows/51858 "2021-10-04T21:24:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [4 October 2021 21:24 UTC](https://discourse.nodered.org/t/macros-multiple-nodes-as-opposed-to-subflows/51858/1 "2021-10-04T21:24:11Z")

</div>

Oh, I am so happy I started to use SUBFLOWs rather than discreet nodes.

The pain that I was having before them was just unbelievable. (Well, maybe not. but...)

The latest thing to _bite me_ is like a Macro.  
Maybe GROUP would do this, but not how I see it.

I'm making a flow. I need some nodes to be put there which are _like_ a subflow.  
But can't be because there are `inject` nodes and `debug` nodes used.

For example like this:

 ![Screenshot from 2021-10-05 08-20-00](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/50c5af9aecf7294d947f66b511eb73d8ed3f103c.png)

So I want to have an _ability_ to include this group of nodes into the flow like I drag/drop any other node (or subflow).

Yeah, I can copy/paste. But if I accidentally copy something else to the clipboard.... _All over red rover_ and I have to go back and copy that group again.

Am I getting too ambitious? 😉

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [5 October 2021 08:57 UTC](https://discourse.nodered.org/t/macros-multiple-nodes-as-opposed-to-subflows/51858/2 "2021-10-05T08:57:59Z")

</div>

You can use the Export to Library feature to export a file a set of nodes as a named flow in the local library. Then you can import that when you want a copy.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 December 2021 08:58 UTC](https://discourse.nodered.org/t/macros-multiple-nodes-as-opposed-to-subflows/51858/3 "2021-12-04T08:58:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
