copy

Method 'Copy' of object 'Sheets' failed

試著忘記壹切 提交于 2020-07-09 19:15:29
问题 After reinstalling Office 2013 I got this error: Run-time error '-21474178848 (80010108)': Method 'Copy' of object 'Sheets' failed In this the code block: Set ThisWork = ActiveWorkbook strExt = ThisWork.Sheets("Catalog1").Cells(2, 4).Value & "_" & Format(Now, "yyyy_mm_dd_hhmmss") strSaveName = ThisWork.Path & "\" & strExt & ".xlsx" ThisWork.Sheets(Array("Catalog1", "Catalog2", "Translations")).Copy With ActiveWorkbook ... After pressing debug and pressing Continue ( F5 ), Excel crashes. Why

Copying and pasting loop in VBA Excel for multiple outputs

假如想象 提交于 2020-07-09 07:16:02
问题 So I have the following excel tabs: Code 1, Code 2, Code 3, LI, 2015, 2016, 2017, 2018, 2019, output for 2015 etc. For 2015, I have a table in '2015' tab with 10 rows a list of 3 code and their respective % values. e.g. ref name yr code 1 % code 2 % code 3 % 12345 NAME 2015 AB 50% CD 37% EF 13% 78901 NAME 2015 AX 54% OD 30% NG 6% 26572 NAME 2015 AE 60% CD 27% PF 13% I need the code 1 'AB' and % '50%' to be put into cells B5 and B6 in the tab Code 1. Same for codes 2 and 3 'CS' and '37%' in B5

Copying and pasting loop in VBA Excel for multiple outputs

一个人想着一个人 提交于 2020-07-09 07:13:12
问题 So I have the following excel tabs: Code 1, Code 2, Code 3, LI, 2015, 2016, 2017, 2018, 2019, output for 2015 etc. For 2015, I have a table in '2015' tab with 10 rows a list of 3 code and their respective % values. e.g. ref name yr code 1 % code 2 % code 3 % 12345 NAME 2015 AB 50% CD 37% EF 13% 78901 NAME 2015 AX 54% OD 30% NG 6% 26572 NAME 2015 AE 60% CD 27% PF 13% I need the code 1 'AB' and % '50%' to be put into cells B5 and B6 in the tab Code 1. Same for codes 2 and 3 'CS' and '37%' in B5

Copying and pasting loop in VBA Excel for multiple outputs

雨燕双飞 提交于 2020-07-09 07:12:19
问题 So I have the following excel tabs: Code 1, Code 2, Code 3, LI, 2015, 2016, 2017, 2018, 2019, output for 2015 etc. For 2015, I have a table in '2015' tab with 10 rows a list of 3 code and their respective % values. e.g. ref name yr code 1 % code 2 % code 3 % 12345 NAME 2015 AB 50% CD 37% EF 13% 78901 NAME 2015 AX 54% OD 30% NG 6% 26572 NAME 2015 AE 60% CD 27% PF 13% I need the code 1 'AB' and % '50%' to be put into cells B5 and B6 in the tab Code 1. Same for codes 2 and 3 'CS' and '37%' in B5

How can I copy an entire vector into a queue?

天涯浪子 提交于 2020-07-05 06:59:08
问题 I am looking to copy the entire contents of a vector into a queue in C++. Is this a built in function or is it nessesary to loop over each element? 回答1: If you make a new queue, you can use the constructor: std::vector<int> v = get_vector(); std::queue<long int, std::deque<long int>> q(std::deque<long int>(v.begin(), v.end())); (You can change the underlying container to taste, though deque is probably the best.) If the queue already exists, there's no range-based algorithm, though, you can

How can I copy an entire vector into a queue?

柔情痞子 提交于 2020-07-05 06:59:06
问题 I am looking to copy the entire contents of a vector into a queue in C++. Is this a built in function or is it nessesary to loop over each element? 回答1: If you make a new queue, you can use the constructor: std::vector<int> v = get_vector(); std::queue<long int, std::deque<long int>> q(std::deque<long int>(v.begin(), v.end())); (You can change the underlying container to taste, though deque is probably the best.) If the queue already exists, there's no range-based algorithm, though, you can

Do cereal and Boost Serialization use zero-copy?

人盡茶涼 提交于 2020-07-05 05:36:23
问题 I have done some performance comparison between several serialization protocols, including FlatBuffers, Cap'n Proto, Boost serialization and cereal. All the tests are written in C++. I know that FlatBuffers and Cap'n Proto use zero-copy. With zero-copy, serialization time is null but size of serialized objects is bigger. I thought that cereal and Boost serialization didn't use zero-copy. However, serialization time (for int and double) is nearly null, and size of serialized objects is nearly

Do cereal and Boost Serialization use zero-copy?

做~自己de王妃 提交于 2020-07-05 05:36:05
问题 I have done some performance comparison between several serialization protocols, including FlatBuffers, Cap'n Proto, Boost serialization and cereal. All the tests are written in C++. I know that FlatBuffers and Cap'n Proto use zero-copy. With zero-copy, serialization time is null but size of serialized objects is bigger. I thought that cereal and Boost serialization didn't use zero-copy. However, serialization time (for int and double) is nearly null, and size of serialized objects is nearly

VBA Copying Excel Range to Different Workbook

柔情痞子 提交于 2020-06-27 23:05:09
问题 I am trying to find a way to copy a range in one workbook, in this case A6:J21,to another workbook. I thought it would be something like the following... currentWorksheet = xlWorkBook.Sheets.Item("Command Group") excelRange = currentWorksheet.Range("A6:J21") excelDestination = newXlSheet.Range("A6:J21") excelRange.Copy(excelDestination) But it gives me an error on excelRange.Copy(excelDestination) . The below code runs as expected, so I'm not sure where i'm going wrong here.. Dim xRng As

How to copy only plain text of cells in Excel?

被刻印的时光 ゝ 提交于 2020-06-22 10:46:45
问题 I am designing an Excel worksheet where the user will click a command button which copies a predetermined range of cells. The user would then paste the contents into a web app using Firefox or IE. The design of the web app is out of my control and currently the text boxes that are used for data input are rich text inputs. This causes the text to look odd and formatted like Excel when the user pastes into them. Is there a way in Excel using VBA to copy only the plain text of the cells that are