PC Review


Reply
Thread Tools Rate Thread

Copy Insert Paste into all Workbooks in Folder

 
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Hello Everyone,

I was wondering how can I copy Column C from MacroAllFile.xls and insert
paste it into all workbooks in a folder into the first worksheet in each
workbook.

Thanks in advance,
 
Reply With Quote
 
 
 
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Ok, I have an easier one, All I want to do is look in Column C of each
workbook, 1st worksheet, and find the letter P, replace the letter P with a
formula.

"JavierDiaz4" wrote:

> Hello Everyone,
>
> I was wondering how can I copy Column C from MacroAllFile.xls and insert
> paste it into all workbooks in a folder into the first worksheet in each
> workbook.
>
> Thanks in advance,

 
Reply With Quote
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Take that back, I cant paste the formula, it wont work, copy and paste the
column from another dummy workbook to all other workbooks would be better,
lets stick to the first idea. Sorry

"JavierDiaz4" wrote:

> Ok, I have an easier one, All I want to do is look in Column C of each
> workbook, 1st worksheet, and find the letter P, replace the letter P with a
> formula.
>
> "JavierDiaz4" wrote:
>
> > Hello Everyone,
> >
> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
> > paste it into all workbooks in a folder into the first worksheet in each
> > workbook.
> >
> > Thanks in advance,

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      2nd Jul 2008
See
http://www.rondebruin.nl/copy4.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"JavierDiaz4" <(E-Mail Removed)> wrote in message news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
> Hello Everyone,
>
> I was wondering how can I copy Column C from MacroAllFile.xls and insert
> paste it into all workbooks in a folder into the first worksheet in each
> workbook.
>
> Thanks in advance,

 
Reply With Quote
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
and paste that column on all 3783 xls in a folder?

"Ron de Bruin" wrote:

> See
> http://www.rondebruin.nl/copy4.htm
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
> > Hello Everyone,
> >
> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
> > paste it into all workbooks in a folder into the first worksheet in each
> > workbook.
> >
> > Thanks in advance,

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      2nd Jul 2008
Do you want to replace the data of column C of each workbook with
the data of column C from MacroAllFile.xls or do you want to insert this column


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"JavierDiaz4" <(E-Mail Removed)> wrote in message news:B35E5AA5-535C-4EBC-8D53-(E-Mail Removed)...
> Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
> and paste that column on all 3783 xls in a folder?
>
> "Ron de Bruin" wrote:
>
>> See
>> http://www.rondebruin.nl/copy4.htm
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
>> > Hello Everyone,
>> >
>> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
>> > paste it into all workbooks in a folder into the first worksheet in each
>> > workbook.
>> >
>> > Thanks in advance,

>>


 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      2nd Jul 2008
Btw: There is a example below the macro to copy a range

Replace the red code with this example and change the range and destination cell


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Do you want to replace the data of column C of each workbook with
> the data of column C from MacroAllFile.xls or do you want to insert this column
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:B35E5AA5-535C-4EBC-8D53-(E-Mail Removed)...
>> Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
>> and paste that column on all 3783 xls in a folder?
>>
>> "Ron de Bruin" wrote:
>>
>>> See
>>> http://www.rondebruin.nl/copy4.htm
>>>
>>> --
>>>
>>> Regards Ron de Bruin
>>> http://www.rondebruin.nl/tips.htm
>>>
>>>
>>> "JavierDiaz4" <(E-Mail Removed)> wrote in message
>>> news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
>>> > Hello Everyone,
>>> >
>>> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
>>> > paste it into all workbooks in a folder into the first worksheet in each
>>> > workbook.
>>> >
>>> > Thanks in advance,
>>>

>


 
Reply With Quote
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Exactly. That would be perfect!

"Ron de Bruin" wrote:

> Do you want to replace the data of column C of each workbook with
> the data of column C from MacroAllFile.xls or do you want to insert this column
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:B35E5AA5-535C-4EBC-8D53-(E-Mail Removed)...
> > Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
> > and paste that column on all 3783 xls in a folder?
> >
> > "Ron de Bruin" wrote:
> >
> >> See
> >> http://www.rondebruin.nl/copy4.htm
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
> >> > Hello Everyone,
> >> >
> >> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
> >> > paste it into all workbooks in a folder into the first worksheet in each
> >> > workbook.
> >> >
> >> > Thanks in advance,
> >>

>
>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      2nd Jul 2008
Replace the red code block with this
Be sure you copy the code in MacroAllFile.xls and that this file is not in the folder with the other files

'Copy a range to a worksheet in mybook
On Error Resume Next
Set sh = mybook.Worksheets(1)
With sh
If .ProtectContents = False Then
With ThisWorkbook.Worksheets(1).Range("C:C")
sh.Range("C1").Resize(.Rows.Count, .Columns.Count).Value = .Value
End With
Else
ErrorYes = True
End If
End With


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"JavierDiaz4" <(E-Mail Removed)> wrote in message news:0DA77D9B-CFC8-48E1-8C98-(E-Mail Removed)...
> Exactly. That would be perfect!
>
> "Ron de Bruin" wrote:
>
>> Do you want to replace the data of column C of each workbook with
>> the data of column C from MacroAllFile.xls or do you want to insert this column
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:B35E5AA5-535C-4EBC-8D53-(E-Mail Removed)...
>> > Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
>> > and paste that column on all 3783 xls in a folder?
>> >
>> > "Ron de Bruin" wrote:
>> >
>> >> See
>> >> http://www.rondebruin.nl/copy4.htm
>> >>
>> >> --
>> >>
>> >> Regards Ron de Bruin
>> >> http://www.rondebruin.nl/tips.htm
>> >>
>> >>
>> >> "JavierDiaz4" <(E-Mail Removed)> wrote in message
>> >> news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
>> >> > Hello Everyone,
>> >> >
>> >> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
>> >> > paste it into all workbooks in a folder into the first worksheet in each
>> >> > workbook.
>> >> >
>> >> > Thanks in advance,
>> >>

>>
>>


 
Reply With Quote
 
JavierDiaz4
Guest
Posts: n/a
 
      2nd Jul 2008
Thanks a million Ron, when I grow up, I wanna be like you, LOL! Thanks again.

"Ron de Bruin" wrote:

> Replace the red code block with this
> Be sure you copy the code in MacroAllFile.xls and that this file is not in the folder with the other files
>
> 'Copy a range to a worksheet in mybook
> On Error Resume Next
> Set sh = mybook.Worksheets(1)
> With sh
> If .ProtectContents = False Then
> With ThisWorkbook.Worksheets(1).Range("C:C")
> sh.Range("C1").Resize(.Rows.Count, .Columns.Count).Value = .Value
> End With
> Else
> ErrorYes = True
> End If
> End With
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:0DA77D9B-CFC8-48E1-8C98-(E-Mail Removed)...
> > Exactly. That would be perfect!
> >
> > "Ron de Bruin" wrote:
> >
> >> Do you want to replace the data of column C of each workbook with
> >> the data of column C from MacroAllFile.xls or do you want to insert this column
> >>
> >>
> >> --
> >>
> >> Regards Ron de Bruin
> >> http://www.rondebruin.nl/tips.htm
> >>
> >>
> >> "JavierDiaz4" <(E-Mail Removed)> wrote in message news:B35E5AA5-535C-4EBC-8D53-(E-Mail Removed)...
> >> > Thanks Ron, which one do I use to just copy column C from MacroAllFile.xls
> >> > and paste that column on all 3783 xls in a folder?
> >> >
> >> > "Ron de Bruin" wrote:
> >> >
> >> >> See
> >> >> http://www.rondebruin.nl/copy4.htm
> >> >>
> >> >> --
> >> >>
> >> >> Regards Ron de Bruin
> >> >> http://www.rondebruin.nl/tips.htm
> >> >>
> >> >>
> >> >> "JavierDiaz4" <(E-Mail Removed)> wrote in message
> >> >> news:3DB34AF3-9B34-4C8B-BC5D-(E-Mail Removed)...
> >> >> > Hello Everyone,
> >> >> >
> >> >> > I was wondering how can I copy Column C from MacroAllFile.xls and insert
> >> >> > paste it into all workbooks in a folder into the first worksheet in each
> >> >> > workbook.
> >> >> >
> >> >> > Thanks in advance,
> >> >>
> >>
> >>

>
>

 
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
Can't Copy and Paste or Paste Special between Excel Workbooks =?Utf-8?B?d2xsZWU=?= Microsoft Excel Misc 7 3 Days Ago 07:00 AM
Copy and paste between workbooks keith Microsoft Excel Misc 2 18th Feb 2009 04:46 PM
Copy & Paste Range from all Worksheets in all Workbooks in a folder feature86@yahoo.com Microsoft Excel Programming 31 24th Apr 2007 07:11 PM
Re: Copy and paste between workbooks? Dave Peterson Microsoft Excel Programming 3 24th Sep 2005 03:39 PM
Copy and paste between workbooks rky Microsoft Excel Worksheet Functions 1 29th Apr 2004 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 AM.