Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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, |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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, |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See
http://www.rondebruin.nl/copy4.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JavierDiaz4" wrote in message ... 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, |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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, |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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, |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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" wrote in message ... 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, |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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, |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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" wrote in message ... 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, |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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" wrote in message ... 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" wrote in message ... 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, |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You are welcome
-- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JavierDiaz4" wrote in message ... 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" wrote in message ... 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" wrote in message ... 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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get data from all workbooks in a folder. Paste into my worksheet. | Excel Programming | |||
Copy & Paste Range from all Worksheets in all Workbooks in a folder | Excel Programming | |||
Macro to insert specified tabs to all workbooks in folder | Excel Programming | |||
Copy folder and paste to another folder | Excel Programming | |||
Copy a cell to all workbooks within a folder. | Excel Discussion (Misc queries) |