Excel VBA: Create New Worksheet For EACH UNIQUE ITEM in List & Copy Record

  Рет қаралды 18,643

Chester Tugwell

Chester Tugwell

Күн бұрын

Пікірлер: 30
@James-wl6bt
@James-wl6bt 3 жыл бұрын
This is exactly what I was looking for thank you very much !! Really saved me with this
@aliceramos2389
@aliceramos2389 2 жыл бұрын
Hey Chester, great video. I'm receiving an error message with the following line " BranchName.Offset(0, -3).Resize(1, 13).Copy Destination:=Worksheets(BranchName.Value).Range("A1").End(xlDown).Offset(1, 0). I'm looking up to information column A. What do I need to change?
@patrickopaola3231
@patrickopaola3231 2 жыл бұрын
Hi Allice , I think you need to set offset to the column in your data. He set his offset off column D which is the 4th column as (0, -3). Just follow the same pattern
@gabbyiem8513
@gabbyiem8513 3 ай бұрын
If i wanted to just copy and paste the entire row of data and the entire header, what would I change those lines of code to be? Rather than the offset.
@IvanCortinas_ES
@IvanCortinas_ES 4 жыл бұрын
Excellent video Chester!! Thank you so much for sharing it. It is very practical.
@ChesterTugwell
@ChesterTugwell 4 жыл бұрын
Glad it was helpful!
@kandhar5642
@kandhar5642 Жыл бұрын
Hi ChesterTugwell.... hope you're doing good.. I have one quetion here. If I run this code it's working completely fine with creating more than one sheet. But if I have only one name in the Data sheet and run macro to create or update. I recieve run time error 1004 - Method "Name of object'_Worksheet Failed and I see new empty sheet created.. Please help me on this case.
@patrickopaola3231
@patrickopaola3231 2 жыл бұрын
Chester great. It is what I am exactly looking for
@guganeshanmahalingam7915
@guganeshanmahalingam7915 2 ай бұрын
Hi, Great Tutorial. I have successfully created worksheets with your method. I have seen your other video "Excel VBA to Convert Range to Table". I like to combine the two methods for my use case. Is it Possible to create table for worksheet range?. If So, Kindly Guide me . Thanks
@saurabhsrivastava1916
@saurabhsrivastava1916 Жыл бұрын
Hey.. nice explanation..can you make a video that how we can do this on different workbooks(not worksheets) in a folder.
@kurtlandeshong7754
@kurtlandeshong7754 2 жыл бұрын
I stumbled upon this video that is exactly what i want. I however get an error when i try to run the script on my data set. "Sub-script out of range". It seems as if the script will not run if the data in the column is a number. Any ideas on how to get around this?
@Gatemover95
@Gatemover95 Жыл бұрын
The Table name must be identical to specified in Set Data WSheet = Worksheets("YOUR TABLE NAME"). Had the same issue
@jdozen12
@jdozen12 Жыл бұрын
Hi sir what if I want that the SHEET NAME will be named based on your Transaction ID. Please advise. Thank you!!
@mickeycell2010
@mickeycell2010 3 жыл бұрын
This is what I want!!!! Thank you very much!!! If Portsmouth has a special character with "\"? How to remove this "\" when creating the new worksheet name? Appreciate if you teach me on this part?
@naveedyousaf1657
@naveedyousaf1657 Жыл бұрын
Excellently explained 👌
@kandhar5642
@kandhar5642 Жыл бұрын
Hi ChesterTugwell.... hope you're doing good.. I have one quetion here. If I run this code it's working completely fine with creating more than one sheet. But if I have only one name in the Data sheet and run macro to create or update. I recieve run time error 1004 - Method "Name of object'_Worksheet Failed and I see new empty sheet created.. Please help me on this case.
@James-wl6bt
@James-wl6bt 3 жыл бұрын
Quick question: I’ve got 5 columns labelled “ address” “ location” “ works” “ action” and “ completed”. I’ve managed to successfully follow your code to get a new tab for each unique address. However, I need to make a further edit and I’m struggling. I only want to make a new tab for each unique address if the “completed” column = N Any ideas on how i can do this ?
@James-wl6bt
@James-wl6bt 3 жыл бұрын
Completed column can only take 2 values “ N” or “Y”
@grenemyr1833
@grenemyr1833 3 жыл бұрын
I used this macro on a PC and it worked beautifully for both your original macro and the one I altered to match my data. However, when I copied the same macro into a MacBook, using excel, of course, it bombed out. Is there some code needed to work inside mac? The error says "Name Already Taken. Try a different one." Again both versions of code worked perfectly on PC....
@ecto_hub1996
@ecto_hub1996 Жыл бұрын
Question: What if i need to add an additional range from a different worksheet to this? I tried adding new sheet and ranges tot he script but i get an error.
@kbillan1
@kbillan1 4 жыл бұрын
This is a great vid! I have one issue, mind you, this is the first time I've tried writing in VBA. I have a set of data that I am trying to sort by week number. I converted my dates using =weeknum, can't get the sheet to run right at all, even just doing this in your sheet. I got it to work by adding text before the output, ="week "&(weeknum(cell)). This runs, but sorts funny. Week 1, Week 10, 11,12... Week 2.. so the tabs are also all silly. Even putting in a sort macro will return the goofed up numbering. Any suggestions as far as how to do what you've done here but based on week number?
7 ай бұрын
HI can you tell me how to add path i'm not able to add
@shivamkathir3592
@shivamkathir3592 4 жыл бұрын
Thank you so much!
@ChesterTugwell
@ChesterTugwell 4 жыл бұрын
You're welcome!
@andrewdale8912
@andrewdale8912 Жыл бұрын
Hello. Is there a download version of your code? I've tried to follow it but with no luck. I've never used VBA before 😂
@kbillan1
@kbillan1 4 жыл бұрын
Thank you, by the way.
@shalinireddy194
@shalinireddy194 4 жыл бұрын
Hello Chester, I have a sheet of 56 - 60 columns data information in it. From that sheet I only need 3 column data i.e., Preferred Name, Email Address & Termination Date. The poison of the headers changes each time when we receive the data. So, I want to create a macro based on the "headers" instead of column number to copy data from the existing sheet to the new work book. Please help me!
@ChesterTugwell
@ChesterTugwell 4 жыл бұрын
Shalini, I don't have a video that does that. The MATCH function might work in this context or you might have to perform a loop to work out the position of each heading.
@shalinireddy194
@shalinireddy194 4 жыл бұрын
@@ChesterTugwell Thank you for the response.. I will try the Match function
@NelsonNaves
@NelsonNaves 2 жыл бұрын
how to duplicate a worksheet with new name in userform¡?
Create a Filter as You Type SEARCH BOX in Excel VBA
15:11
Chester Tugwell
Рет қаралды 56 М.
Excel VBA - Add New Sheet and Rename
13:27
Ah Sing TV
Рет қаралды 9 М.
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 8 МЛН
How to whistle ?? 😱😱
00:31
Tibo InShape
Рет қаралды 16 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,5 МЛН
The Ultimate Guide to Copying Data using Excel VBA
31:05
Excel Macro Mastery
Рет қаралды 68 М.
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 733 М.
VBA to BROWSE & COPY Data from SELECTED File in Excel
10:00
Leila Gharani
Рет қаралды 332 М.
Excel VBA: Copy Data Between ANY Two Sheets
12:56
Excel Macro Mastery
Рет қаралды 121 М.
Split a Master Spreadsheet into Multiple Sheets with 1 click - VBA for Beginner
13:17
How to Create & Use Excel Macros (Real world example)
10:09
Leila Gharani
Рет қаралды 1,7 МЛН
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56