[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>Be me >Need to create an Excel macro that performs the

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 3

File: 18it4s.jpg (117KB, 666x500px) Image search: [Google]
18it4s.jpg
117KB, 666x500px
>Be me
>Need to create an Excel macro that performs the same steps on multiple files, all of which have a different number of rows of data.

Essentially, I want the macro to run on "Every Row between Row 1 and Row X"; with Row X being the last row with data in it. It is possible to do this dynamically?

Seems like it would be doable if I were able to define the 'X' value by using a For Loop (ie. For every time a row has data, increase the value of X by 1... until X equals the number of rows with data in this particular file)

Is this possible in Excel VBA? I've never had to dick around with it before now.
>>
File: 1472179291446.jpg (517KB, 1024x678px) Image search: [Google]
1472179291446.jpg
517KB, 1024x678px
shameless self bmup
>>
Install Gentoo
>>
File: 1483718336459.jpg (26KB, 600x592px) Image search: [Google]
1483718336459.jpg
26KB, 600x592px
>>58536601
Thanks that fixed it
>>
>>58536242
There is While and Do Until loop for such cases
>>
Convert to CSV and do it in powershell
>>
>>58536242
>Be me
>>>/r/eddit
>>
>>58536242
iNSTALL GENTOoo REEEEEEEE!!!!
>>
>>58536242
Who are you quoting?
>>
>>58536242
Dim lastrownumb, i as integer

lastrownumb = Range("A1").CurrentRegion.Columns.Count

For i = 1 to lastrownumb
Range("A" & i) = blablabla
Next i

I'm on a bus and this is off the top of my head, but this should give you a good starting point
Thread posts: 10
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.